command: plug memory leak

* src/util/command.c (virCommandFree): Free data from
virCommandSetInputBuffer.
This commit is contained in:
Eric Blake 2010-12-10 08:56:30 -07:00
parent 2a5ccbefb0
commit f12d416927

View File

@ -1198,6 +1198,7 @@ virCommandFree(virCommandPtr cmd)
}
}
VIR_FREE(cmd->inbuf);
VIR_FORCE_CLOSE(cmd->outfd);
VIR_FORCE_CLOSE(cmd->errfd);