mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-31 14:07:16 +00:00
tests: qemuMonitorTestAddInvalidCommandResponse: VIR_AUTOFREE
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
3f0713a0b1
commit
e6d6a56fef
@ -174,17 +174,13 @@ qemuMonitorTestAddInvalidCommandResponse(qemuMonitorTestPtr test,
|
|||||||
const char *expectedcommand,
|
const char *expectedcommand,
|
||||||
const char *actualcommand)
|
const char *actualcommand)
|
||||||
{
|
{
|
||||||
char *msg;
|
VIR_AUTOFREE(char *) msg = NULL;
|
||||||
int ret;
|
|
||||||
|
|
||||||
if (virAsprintf(&msg, "expected command '%s' got '%s'",
|
if (virAsprintf(&msg, "expected command '%s' got '%s'",
|
||||||
expectedcommand, actualcommand) < 0)
|
expectedcommand, actualcommand) < 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