mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
tests: qemuMonitorReportError: use VIR_AUTOFREE
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
6d11c756f2
commit
20d3c483e8
@ -197,8 +197,8 @@ qemuMonitorReportError(qemuMonitorTestPtr test, const char *errmsg, ...)
|
||||
{
|
||||
va_list msgargs;
|
||||
VIR_AUTOFREE(char *) tmp = NULL;
|
||||
char *msg = NULL;
|
||||
char *jsonmsg = NULL;
|
||||
VIR_AUTOFREE(char *) msg = NULL;
|
||||
VIR_AUTOFREE(char *) jsonmsg = NULL;
|
||||
int ret = -1;
|
||||
|
||||
va_start(msgargs, errmsg);
|
||||
@ -219,8 +219,6 @@ qemuMonitorReportError(qemuMonitorTestPtr test, const char *errmsg, ...)
|
||||
|
||||
cleanup:
|
||||
va_end(msgargs);
|
||||
VIR_FREE(msg);
|
||||
VIR_FREE(jsonmsg);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user