aboutsummaryrefslogtreecommitdiff
path: root/hw/display/bochs-display.c
diff options
context:
space:
mode:
authorCameron Esfahani <dirty@apple.com>2019-12-10 13:27:54 -0800
committerGerd Hoffmann <kraxel@redhat.com>2019-12-20 07:05:46 +0100
commit0d82411d0e38a0de7829f97d04406765c8d2210d (patch)
treec328ddc99048f36a4a028ca3091e78694f041e2d /hw/display/bochs-display.c
parentca26b032e5a0e8a190c763ce828a8740d24b9b65 (diff)
downloadqemu-0d82411d0e38a0de7829f97d04406765c8d2210d.zip
qemu-0d82411d0e38a0de7829f97d04406765c8d2210d.tar.gz
qemu-0d82411d0e38a0de7829f97d04406765c8d2210d.tar.bz2
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 dc1bd16..215db9a 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);
}
}