qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] virtio-serial-bus: Delete timer from list before free it
@ 2017-03-06  3:29 zhanghailiang
  2017-03-06 17:02 ` Paolo Bonzini
  2017-03-07 20:01 ` Amit Shah
  0 siblings, 2 replies; 4+ messages in thread
From: zhanghailiang @ 2017-03-06  3:29 UTC (permalink / raw)
  To: amit, mst, pbonzini; +Cc: qemu-devel, zhanghailiang

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
---
 hw/char/virtio-serial-bus.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c
index d544cd9..d797a67 100644
--- a/hw/char/virtio-serial-bus.c
+++ b/hw/char/virtio-serial-bus.c
@@ -724,6 +724,7 @@ static void virtio_serial_post_load_timer_cb(void *opaque)
         }
     }
     g_free(s->post_load->connected);
+    timer_del(s->post_load->timer);
     timer_free(s->post_load->timer);
     g_free(s->post_load);
     s->post_load = NULL;
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-14 12:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-06  3:29 [Qemu-devel] [PATCH] virtio-serial-bus: Delete timer from list before free it zhanghailiang
2017-03-06 17:02 ` Paolo Bonzini
2017-03-07 20:01 ` Amit Shah
2017-03-14 12:26   ` Hailiang Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).