display/bochs-display: fix memory leak
Fix memory leak in bochs_display_update(). Leaks 304 bytes per frame. Fixes:stable-4.233ebad5405
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> (cherry picked from commit0d82411d0e
) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
parent
8d151ab5c2
commit
7e1bc51f3f
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue