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:
John Ferlan 2016-07-18 13:58:52 -04:00
parent a8962f705d
commit fee696b6e8

View File

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