mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-21 19:02:25 +00:00
qemumonitortestutils: Don't skip va_end() on error path
When allocation of memory failed the error path didn't call va_end() causing a coverity failure. Reported by John Ferlan.
This commit is contained in:
parent
ae9ef97b9b
commit
8f95d5d84c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user