Fix memory leak in unittest 14/242614/1 accepted/tizen/unified/20200904.154129 submit/tizen/20200828.085644
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 28 Aug 2020 08:47:34 +0000 (17:47 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 28 Aug 2020 08:47:34 +0000 (17:47 +0900)
Change-Id: I94f9c8f034e03a61f78ffd6e1f056c063f3d6e8c
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
tests/src/sticker_data_unittests.cc

index 7b0294c..57002ce 100644 (file)
@@ -71,6 +71,7 @@ TEST_F(StickerDataTest, utc_sticker_data_create_p)
 
     sticker_data_h sd_h = NULL;
     int ret = sticker_data_create(&sd_h);
+    sticker_data_destroy(sd_h);
     EXPECT_EQ(ret, STICKER_ERROR_NONE);
 }