mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 01:34:11 +03:00
virdbustest: Don't leak @out_strv1
In testMessageSingleArrayRef the string is doubly referenced. Therefore we have to free also the first pointer to the string. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
f9bc41f740
commit
08425740b2
@ -323,6 +323,7 @@ static int testMessageSingleArrayRef(const void *args ATTRIBUTE_UNUSED)
|
|||||||
cleanup:
|
cleanup:
|
||||||
if (out_strv1)
|
if (out_strv1)
|
||||||
VIR_FREE(out_strv1[0]);
|
VIR_FREE(out_strv1[0]);
|
||||||
|
VIR_FREE(out_strv1);
|
||||||
virDBusMessageUnref(msg);
|
virDBusMessageUnref(msg);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user