util/setup: fix grub_util_path_list leak
Add helper grub_util_free_path_list and use it where appropriate. Found by: Coverity scan. CID: 73727
This commit is contained in:
parent
57e7f1b775
commit
0e075ac385
4 changed files with 19 additions and 8 deletions
|
@ -765,6 +765,8 @@ grub_install_copy_files (const char *src,
|
|||
grub_install_compress_file (srcf, dstf, 1);
|
||||
free (dstf);
|
||||
}
|
||||
|
||||
grub_util_free_path_list (path_list);
|
||||
}
|
||||
|
||||
const char *pkglib_DATA[] = {"efiemu32.o", "efiemu64.o",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue