1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

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);