mirror of https://gitee.com/openkylin/libvirt.git
command: plug memory leak
* src/util/command.c (virCommandFree): Free data from virCommandSetInputBuffer.
This commit is contained in:
parent
2a5ccbefb0
commit
f12d416927
|
@ -1198,6 +1198,7 @@ virCommandFree(virCommandPtr cmd)
|
|||
}
|
||||
}
|
||||
|
||||
VIR_FREE(cmd->inbuf);
|
||||
VIR_FORCE_CLOSE(cmd->outfd);
|
||||
VIR_FORCE_CLOSE(cmd->errfd);
|
||||
|
||||
|
|
Loading…
Reference in New Issue