mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: qemuMonitorTestAddUnexpectedErrorResponse: VIR_AUTOFREE
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
f6d1e243cc
commit
3f0713a0b1
@ -160,16 +160,12 @@ static int
|
|||||||
qemuMonitorTestAddUnexpectedErrorResponse(qemuMonitorTestPtr test,
|
qemuMonitorTestAddUnexpectedErrorResponse(qemuMonitorTestPtr test,
|
||||||
const char *command)
|
const char *command)
|
||||||
{
|
{
|
||||||
char *msg;
|
VIR_AUTOFREE(char *) msg = NULL;
|
||||||
int ret;
|
|
||||||
|
|
||||||
if (virAsprintf(&msg, "unexpected command: '%s'", command) < 0)
|
if (virAsprintf(&msg, "unexpected command: '%s'", command) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
ret = qemuMonitorTestAddErrorResponse(test, msg);
|
return qemuMonitorTestAddErrorResponse(test, msg);
|
||||||
|
|
||||||
VIR_FREE(msg);
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user