mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
daemon: parted: Fix memory leak of list of strings.
Found by ./configure --enable-valgrind-daemon.
This commit is contained in:
@@ -807,7 +807,7 @@ do_part_get_gpt_type(const char *device, int partnum)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
char **lines = split_lines (err);
|
||||
CLEANUP_FREE_STRING_LIST char **lines = split_lines (err);
|
||||
if (lines == NULL) {
|
||||
reply_with_error ("'%s %s -i %i' returned no output",
|
||||
str_sgdisk, device, partnum);
|
||||
|
||||
Reference in New Issue
Block a user