mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-11 12:25:52 +00:00
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->outfd);
|
||||||
VIR_FORCE_CLOSE(cmd->errfd);
|
VIR_FORCE_CLOSE(cmd->errfd);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user