From: Eric Blake Date: Fri, 10 Dec 2010 15:56:30 +0000 (-0700) Subject: command: plug memory leak X-Git-Tag: v0.8.7~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f12d4169278a28e7d2b57fe5ffa5df3e853bf1c9;p=thirdparty%2Flibvirt.git command: plug memory leak * src/util/command.c (virCommandFree): Free data from virCommandSetInputBuffer. --- diff --git a/src/util/command.c b/src/util/command.c index 089e0bd536..5e2b19aff7 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);