From: Andrei Borzenkov Date: Mon, 26 Jan 2015 19:39:08 +0000 (+0300) Subject: util/mkimage: fix memory leaks. X-Git-Tag: 2.02-beta3~472 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe4efe0d50482b433b46de677546f796de46d5ae;p=thirdparty%2Fgrub.git util/mkimage: fix memory leaks. Found by: Coverity scan. --- diff --git a/util/mkimage.c b/util/mkimage.c index e6b799fd7..bccd70388 100644 --- a/util/mkimage.c +++ b/util/mkimage.c @@ -1278,6 +1278,8 @@ grub_install_generate_image (const char *dir, const char *prefix, free (core_img); core_img = full_img; core_size = full_size; + free (decompress_img); + free (decompress_path); } switch (image_target->id) @@ -1744,6 +1746,8 @@ grub_install_generate_image (const char *dir, const char *prefix, free (core_img); core_img = rom_img; core_size = rom_size; + free (boot_img); + free (boot_path); } break; case IMAGE_QEMU_MIPS_FLASH: