mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-21 10:50:24 +03: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,
|
||||
const char *command)
|
||||
{
|
||||
char *msg;
|
||||
int ret;
|
||||
VIR_AUTOFREE(char *) msg = NULL;
|
||||
|
||||
if (virAsprintf(&msg, "unexpected command: '%s'", command) < 0)
|
||||
return -1;
|
||||
|
||||
ret = qemuMonitorTestAddErrorResponse(test, msg);
|
||||
|
||||
VIR_FREE(msg);
|
||||
return ret;
|
||||
return qemuMonitorTestAddErrorResponse(test, msg);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user