daemon: parted: Fix memory leak of list of strings.

Found by ./configure --enable-valgrind-daemon.
This commit is contained in:
Richard W.M. Jones
2013-10-11 11:12:57 +01:00
parent db0307b7e3
commit c245b55707

View File

@@ -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);