mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
util: Fix incorrect VIR_FREE in virConfGetValueStringList
Since we VIR_ALLOC_N to *values, the VIR_FREE should be done likewise Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
a8962f705d
commit
fee696b6e8
@ -1016,7 +1016,7 @@ int virConfGetValueStringList(virConfPtr conf,
|
||||
return -1;
|
||||
if (cval->str &&
|
||||
VIR_STRDUP((*values)[0], cval->str) < 0) {
|
||||
VIR_FREE(values);
|
||||
VIR_FREE(*values);
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user