summaryrefslogtreecommitdiffstats
path: root/hw/display/bochs-display.c
diff options
context:
space:
mode:
authorCameron Esfahani2019-12-10 22:27:54 +0100
committerGerd Hoffmann2019-12-20 07:05:46 +0100
commit0d82411d0e38a0de7829f97d04406765c8d2210d (patch)
treec328ddc99048f36a4a028ca3091e78694f041e2d /hw/display/bochs-display.c
parentvhost-user-gpu: Drop trailing json comma (diff)
downloadqemu-0d82411d0e38a0de7829f97d04406765c8d2210d.tar.gz
qemu-0d82411d0e38a0de7829f97d04406765c8d2210d.tar.xz
qemu-0d82411d0e38a0de7829f97d04406765c8d2210d.zip
display/bochs-display: fix memory leak
Fix memory leak in bochs_display_update(). Leaks 304 bytes per frame. Fixes: 33ebad54056 Signed-off-by: Cameron Esfahani <dirty@apple.com> Message-Id: <d6c26e68db134c7b0c7ce8b61596ca2e65e01e12.1576013209.git.dirty@apple.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/bochs-display.c')
-rw-r--r--hw/display/bochs-display.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/display/bochs-display.c b/hw/display/bochs-display.c
index dc1bd1641d..215db9a231 100644
--- a/hw/display/bochs-display.c
+++ b/hw/display/bochs-display.c
@@ -252,6 +252,8 @@ static void bochs_display_update(void *opaque)
dpy_gfx_update(s->con, 0, ys,
mode.width, y - ys);
}
+
+ g_free(snap);
}
}