]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: fix resource leak
authorPavel Hrdina <phrdina@redhat.com>
Sun, 9 Apr 2017 10:55:09 +0000 (12:55 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 11 Apr 2017 11:23:00 +0000 (13:23 +0200)
commitab0a461b8c873e9b4999ed627bc8ce01d0105268
tree143ed924048186314c804b85096aa616b13e56e6
parentffc810b7c7cad514fe362c5b42877bca7eee88b3
rpc: fix resource leak

Commit 252610f7dd1 switched to use hash to store servers.
Function virHashGetItems returns allocated array which needs
to be freed also for successful path, not only if there is
an error.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/rpc/virnetdaemon.c