utest: fix the memory leak 65/165065/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 26 Dec 2017 00:44:48 +0000 (09:44 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 26 Dec 2017 00:44:48 +0000 (09:44 +0900)
Change-Id: Ib5c0b7dc96b19fefb93889b330b444f937490eac

utests/src/ut_tdm.cpp

index 33a968f..2ba98ca 100644 (file)
@@ -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), "");
 }