util/install: fix memory leak.

Found by: Coverity scan.
This commit is contained in:
Andrei Borzenkov 2015-01-26 21:11:32 +03:00
parent 64440daa21
commit 5e27fb06f2

View file

@ -490,6 +490,7 @@ grub_install_make_image_wrap_file (const char *dir, const char *prefix,
dir, prefix,
outname, mkimage_target,
compnames[compression], note ? "--note" : "", s);
free (s);
tgt = grub_install_get_image_target (mkimage_target);
if (!tgt)