coreboot-kgpe-d16/util/cbfstool
Paul Menzel 2c8f81b57b cbfstool: cbfs-mkstage.c: Free `buffer` on error path
Cppcheck warns about a memory leak, present since adding romtool,
which was renamed to cbfstool, in commit 5d01ec0f.

    $ cppcheck --version
    Cppcheck 1.59
    […]
    [cbfs-mkstage.c:170]: (error) Memory leak: buffer
    […]

Indeed the memory pointed to by `buffer` is not freed on the error path,
so add `free(buffer)` to fix this.

Change-Id: I6cbf82479027747c800c5fe847f20b779e261ef4
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: http://review.coreboot.org/3069
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2013-04-12 20:22:39 +02:00
..
lzma cbfstool: completely initialize input and output streams 2013-04-08 21:36:37 +02:00
EXAMPLE
Makefile cbfstool: Replace C++ code with C code 2013-04-03 02:35:28 +02:00
Makefile.inc cbfstool: Replace C++ code with C code 2013-04-03 02:35:28 +02:00
cbfs-mkpayload.c cbfstool: Fix compile warnings caused by incorrect data types. 2013-02-18 12:28:43 +01:00
cbfs-mkstage.c cbfstool: cbfs-mkstage.c: Free `buffer` on error path 2013-04-12 20:22:39 +02:00
cbfs.h
cbfs_image.c cbfstool: Fix cbfs_image.c 2013-03-27 01:24:48 +01:00
cbfs_image.h cbfstool locate: Implement alignment switch --align/-a 2013-03-20 05:47:32 +01:00
cbfstool.c cbfstool: fix --machine 2013-04-02 20:27:10 +02:00
coff.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
common.c
common.h cbfstool: support parsing UEFI firmware volumes 2013-02-05 22:43:23 +01:00
compress.c cbfstool: Replace C++ code with C code 2013-04-03 02:35:28 +02:00
elf.h
fit.c cbfstool: Add update-fit command 2013-03-27 01:25:12 +01:00
fit.h cbfstool: Add update-fit command 2013-03-27 01:25:12 +01:00
fv.h GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
swab.h