From: Yunlei Ding <yunlei.d...@citrix.com> msmouse_chr_close is only pointed by chr->chr_close in qemu_chr_close function. After calling chr->chr_close, chr will be freed. So we don't need to free it again here.
Signed-off-by: Yunlei Ding <yunlei.d...@citrix.com> (defect not identified by Coverity Scan) Reviewed-by: Andrew Cooper <andrew.coop...@citrix.com> --- hw/msmouse.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/msmouse.c b/hw/msmouse.c index 69356a5..2d2703b 100644 --- a/hw/msmouse.c +++ b/hw/msmouse.c @@ -61,7 +61,6 @@ static int msmouse_chr_write (struct CharDriverState *s, const uint8_t *buf, int static void msmouse_chr_close (struct CharDriverState *chr) { - qemu_free (chr); } CharDriverState *qemu_chr_open_msmouse(void) -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel