summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRongrong Yuan <yuanrr.fnst@fujitsu.com>2022-01-20 10:19:04 +0800
committerRongrong Yuan <yuanrr.fnst@fujitsu.com>2022-01-20 10:19:04 +0800
commit26c37c4140ce5739d646c104f1e378b2c5d8ec27 (patch)
tree1b1b6d5b8d4c58c6d6a281f1c5c05fd3145f26b2
parent2ee86feebc8888d10973a0d3dce1fdd25cd2e6d6 (diff)
Fix potential memory leak
Bug-AGL: SPEC-4221 Signed-off-by: Rongrong Yuan <yuanrr.fnst@fujitsu.com> Change-Id: I30634977a3b899647a5f2faad2c70db39e97d09e
-rw-r--r--src/compositor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compositor.c b/src/compositor.c
index 2bbdce8..fd5f5a6 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1768,6 +1768,11 @@ int wet_main(int argc, char *argv[])
wl_display_destroy_clients(display);
error_compositor:
+ free(backend);
+ backend = NULL;
+ free(modules);
+ modules = NULL;
+
weston_compositor_tear_down(ivi.compositor);
weston_compositor_log_scope_destroy(log_scope);