"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools: mkeficapsule: resource leak in read_bin_file()

Free the allocated buffer in case of an error.

Fixes: 9e63786e2b4b ("tools: mkeficapsule: rework the code a little bit")
Addresses-Coverity-ID: 345917 Resource leak
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>

+1
+1
tools/mkeficapsule.c
··· 168 168 if (size < bin_stat.st_size) { 169 169 fprintf(stderr, "read failed (%zx)\n", size); 170 170 ret = -1; 171 + free(buf); 171 172 goto err; 172 173 } 173 174