]> git.ipfire.org Git - thirdparty/libvirt.git/commit
console: plug memory leaks
authorAlex Jia <ajia@redhat.com>
Tue, 20 Dec 2011 09:40:13 +0000 (17:40 +0800)
committerEric Blake <eblake@redhat.com>
Tue, 20 Dec 2011 20:36:45 +0000 (13:36 -0700)
commit2b603dcb6c2b8d07044241c9feaf0dfafecad09d
tree8a43323e6a94c51981bd9ef984463a9ade0eec5d
parent5abbe04d68c7dadd1d593fb009288001de82fc34
console: plug memory leaks

Using 'virReallocN' to allocate memory on virConsoleEventOnStdin,
virConsoleEventOnStdout and virConsoleEventOnStream, however, the
cleanup function virConsoleShutdown hasn't released these memory.

* tools/console.c: fix memory leaks on virConsoleShutdown.

https://bugzilla.redhat.com/show_bug.cgi?id=767488

Signed-off-by: Alex Jia <ajia@redhat.com>
tools/console.c