]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix memory leak dispatching domain events
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 31 Aug 2011 15:50:09 +0000 (16:50 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 31 Aug 2011 16:51:09 +0000 (17:51 +0100)
commita91d3115b5c460af8a6f70d2092d0bc5ef9b723e
tree3554c7acff2ca933958f0c83ea71ecca8aec32b9
parentc32536e7da5a838a2a527f69003cabda7af7b94c
Fix memory leak dispatching domain events

When dispatching domain events we will create an XDR struct
containing the event info. Some of this data may be allocated
on the heap and so must be freed. The graphics event dispatcher
had a broken attempt to free one field, but missed others. All
the events have a dom->name string that needs freeing. The code
should have used the xdr_free() procedure for doing all this

* daemon/remote.c: Use xdr_free after dispatching events
daemon/remote.c