util/mkimage: fix memory leaks.
Found by: Coverity scan.
This commit is contained in:
parent
1a87156e01
commit
fe4efe0d50
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue