mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 15:45:28 +00:00
parallels: fix parallelsDoCmdRun in case of command failure
Don't try to dereferece NULL pointer.
This commit is contained in:
parent
babe7dada0
commit
748b6d8e90
@ -55,7 +55,7 @@ parallelsDoCmdRun(char **outbuf, const char *binary, va_list list)
|
|||||||
cleanup:
|
cleanup:
|
||||||
VIR_FREE(scmd);
|
VIR_FREE(scmd);
|
||||||
virCommandFree(cmd);
|
virCommandFree(cmd);
|
||||||
if (ret)
|
if (ret && outbuf)
|
||||||
VIR_FREE(*outbuf);
|
VIR_FREE(*outbuf);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user