mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
rpc: fix resource leak
Commit252610f7dd
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> (cherry picked from commitab0a461b8c
)
This commit is contained in:
parent
c714afcc99
commit
e675e874fa
@ -401,6 +401,7 @@ virNetDaemonPreExecRestart(virNetDaemonPtr dmn)
|
||||
}
|
||||
}
|
||||
|
||||
VIR_FREE(srvArray);
|
||||
virObjectUnlock(dmn);
|
||||
|
||||
return object;
|
||||
|
Loading…
Reference in New Issue
Block a user