From 0d82411d0e38a0de7829f97d04406765c8d2210d Mon Sep 17 00:00:00 2001 From: Cameron Esfahani Date: Tue, 10 Dec 2019 13:27:54 -0800 Subject: display/bochs-display: fix memory leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix memory leak in bochs_display_update(). Leaks 304 bytes per frame. Fixes: 33ebad54056 Signed-off-by: Cameron Esfahani Message-Id: Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Gerd Hoffmann --- hw/display/bochs-display.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw') 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); } } -- cgit v1.1