mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 17:35:17 +00:00
qemuMonitorFdsetsFree: Don't leak @set->fds
The @fds member of qemuMonitorFdsetInfo struct is an array and as such, it's allocated in qemuMonitorJSONQueryFdsetsParse() but not freed in qemuMonitorFdsetsFree(). Fixes: b8998cc670f7b1b11a83276050e49dce7efba333 Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
0a28ea6f59
commit
225b363d50
@ -2708,6 +2708,8 @@ void qemuMonitorFdsetsFree(qemuMonitorFdsetsPtr fdsets)
|
||||
|
||||
for (j = 0; j < set->nfds; j++)
|
||||
g_free(set->fds[j].opaque);
|
||||
|
||||
g_free(set->fds);
|
||||
}
|
||||
g_free(fdsets->fdsets);
|
||||
g_free(fdsets);
|
||||
|
Loading…
x
Reference in New Issue
Block a user