From 6bf42e11db58d7cc9b10e741877382dba99a9210 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Tue, 26 Dec 2017 09:44:48 +0900 Subject: [PATCH] utest: fix the memory leak Change-Id: Ib5c0b7dc96b19fefb93889b330b444f937490eac --- utests/src/ut_tdm.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/utests/src/ut_tdm.cpp b/utests/src/ut_tdm.cpp index 33a968f..2ba98ca 100644 --- a/utests/src/ut_tdm.cpp +++ b/utests/src/ut_tdm.cpp @@ -309,6 +309,7 @@ TEST_F(TDMInit, DisplayDeinitFailRepeatWithSameDpy) tdm_display_deinit(dpy2); tdm_display_deinit(dpy); tdm_display_deinit(dpy2); + free(dpy2); exit(0); }, ::testing::ExitedWithCode(0), ""); } -- 2.7.4