projects
/
grub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a87156
)
util/mkimage: fix memory leaks.
author
Andrei Borzenkov
<arvidjaar@gmail.com>
Mon, 26 Jan 2015 19:39:08 +0000
(22:39 +0300)
committer
Andrei Borzenkov
<arvidjaar@gmail.com>
Mon, 26 Jan 2015 20:04:09 +0000
(23:04 +0300)
Found by: Coverity scan.
util/mkimage.c
patch
|
blob
|
history
diff --git
a/util/mkimage.c
b/util/mkimage.c
index
e6b799f
..
bccd703
100644
(file)
--- 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: