From 928d3a0059b49c7434627bf88748957087ea2a44 Mon Sep 17 00:00:00 2001 From: Lujin Wang Date: Mon, 12 Aug 2019 12:22:23 -0700 Subject: [PATCH] clients: Free output->make/model in output_destroy == 8 bytes in 1 blocks are definitely lost in loss record 4 of 71 == at 0x48450F8: malloc (vg_replace_malloc.c:309) == by 0x500213F: strdup (strdup.c:42) == by 0x40A57F: display_handle_geometry (in weston-desktop-shell) == by 0x4864D27: ffi_call_SYSV (in libffi.so.6.0.4) == by 0x4865697: ffi_call (in libffi.so.6.0.4) == by 0x4880E07: wl_closure_invoke (connection.c:935) == by 0x487DD73: dispatch_event.isra.5 (wayland-client.c:1310) == by 0x487EF87: dispatch_queue (wayland-client.c:1456) == by 0x487EF87: wl_display_dispatch_queue_pending (wayland-client.c:1698) == by 0x4104E3: handle_display_data (in weston-desktop-shell) == by 0x40FE8F: display_run (in weston-desktop-shell) == by 0x405AB3: main (in weston-desktop-shell) Signed-off-by: Lujin Wang Signed-off-by: Pekka Paalanen --- clients/window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clients/window.c b/clients/window.c index 3175e1a3..a603bc62 100644 --- a/clients/window.c +++ b/clients/window.c @@ -5743,6 +5743,8 @@ output_destroy(struct output *output) wl_output_destroy(output->output); wl_list_remove(&output->link); + free(output->make); + free(output->model); free(output); }