mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
rpc: Need to virCommandFree on error path
This commit is contained in:
parent
ce6de782e9
commit
0ea43d177c
@ -704,6 +704,7 @@ int virNetSocketNewConnectSSH(const char *nodename,
|
||||
|
||||
virBufferEscapeShell(&buf, netcat);
|
||||
if (virBufferError(&buf)) {
|
||||
virCommandFree(cmd);
|
||||
virBufferFreeAndReset(&buf);
|
||||
virReportOOMError();
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user