mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
ch: monitor: unref mon->vm before vm
Do not access 'mon' after unref'ing it. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
005e70e9a7
commit
247e8fcc6a
@ -543,9 +543,8 @@ void virCHMonitorClose(virCHMonitor *mon)
|
|||||||
g_free(mon->socketpath);
|
g_free(mon->socketpath);
|
||||||
}
|
}
|
||||||
|
|
||||||
virObjectUnref(mon);
|
|
||||||
if (mon->vm)
|
|
||||||
virObjectUnref(mon->vm);
|
virObjectUnref(mon->vm);
|
||||||
|
virObjectUnref(mon);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user