diff --git a/tests/qemumonitortestutils.c b/tests/qemumonitortestutils.c index fb76156a57..5697946459 100644 --- a/tests/qemumonitortestutils.c +++ b/tests/qemumonitortestutils.c @@ -669,7 +669,7 @@ qemuMonitorTestAddItemParams(qemuMonitorTestPtr test, va_start(args, response); if (VIR_ALLOC(data) < 0) - return -1; + goto error; if (VIR_STRDUP(data->command_name, cmdname) < 0 || VIR_STRDUP(data->response, response) < 0)