util/mkimage: fix memory leaks.

Found by: Coverity scan.
This commit is contained in:
Andrei Borzenkov 2015-01-26 22:39:08 +03:00
parent 1a87156e01
commit fe4efe0d50

View file

@ -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: