mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 10:03:49 +03:00
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>
This commit is contained in:
parent
ffc810b7c7
commit
ab0a461b8c
@ -401,6 +401,7 @@ virNetDaemonPreExecRestart(virNetDaemonPtr dmn)
|
||||
}
|
||||
}
|
||||
|
||||
VIR_FREE(srvArray);
|
||||
virObjectUnlock(dmn);
|
||||
|
||||
return object;
|
||||
|
Loading…
x
Reference in New Issue
Block a user