[libvirt] [PATCH] command: plug memory leak
Laine Stump
laine at laine.org
Fri Dec 10 19:25:29 UTC 2010
On 12/10/2010 10:56 AM, Eric Blake wrote:
> * src/util/command.c (virCommandFree): Free data from
> virCommandSetInputBuffer.
> ---
> src/util/command.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/src/util/command.c b/src/util/command.c
> index 089e0bd..5e2b19a 100644
> --- a/src/util/command.c
> +++ b/src/util/command.c
> @@ -1198,6 +1198,7 @@ virCommandFree(virCommandPtr cmd)
> }
> }
>
> + VIR_FREE(cmd->inbuf);
> VIR_FORCE_CLOSE(cmd->outfd);
> VIR_FORCE_CLOSE(cmd->errfd);
>
ACK.
More information about the libvir-list
mailing list