Skip to content

Commit

Permalink
fix: Fixed double free operation in fwinfogen.c
Browse files Browse the repository at this point in the history
Signed-off-by: Taras Drozdovskyi <t.drozdovsky@samsung.com>
  • Loading branch information
tdrozdovsky committed Feb 19, 2024
1 parent 71f9e4d commit c9b4363
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/fwinfogen.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,8 @@ int main(int argc, char** argv)
#endif
ret = 0;
exit:
free(buf);
if (buf != NULL)
free(buf);
fclose(fd);

#ifdef CONFIG_BOOTLOADER2
Expand Down

0 comments on commit c9b4363

Please sign in to comment.