mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
daemon: ldm: avoid manual free()
When the LDM code was converted to the CLEANUP_* macros, a free()
invocation for a CLEANUP_FREE variable was left in the
ldmtool_diskgroup_volumes implementation, causing double-free on
success.
Updates commit 950951c67d.
This commit is contained in:
@@ -286,7 +286,6 @@ do_ldmtool_diskgroup_volumes (const char *diskgroup)
|
||||
reply_with_error ("%s", err);
|
||||
return NULL;
|
||||
}
|
||||
free (err);
|
||||
|
||||
return parse_json_get_object_string_list (out, "volumes",
|
||||
__func__, "ldmtool show diskgroup");
|
||||
|
||||
Reference in New Issue
Block a user