g364fb: fix DirtyBitmapSnapshot leak
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 Feb 2018 16:36:33 +0000 (17:36 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 Mar 2018 13:00:58 +0000 (14:00 +0100)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/display/g364fb.c

index 819f8be05d145d682ff2c5a78c298c22b036fea6..3d75394e7778ad14a86a164712875b6b07b4f4cc 100644 (file)
@@ -207,6 +207,7 @@ done:
     if (xmax || ymax) {
         dpy_gfx_update(s->con, xmin, ymin, xmax - xmin + 1, ymax - ymin + 1);
     }
+    g_free(snap);
 }
 
 static void g364fb_draw_blank(G364State *s)