summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhyunho <hhstark.kang@samsung.com>2020-09-17 14:36:54 +0900
committerhyunho <hhstark.kang@samsung.com>2020-09-17 14:36:54 +0900
commit3c2bc2ca84f98d0774be350621a37a44a25f1416 (patch)
tree933b0663ee4706d4b935f3c32279eca76e3b833d
parentd5050b542b2b5d0a445920ef5888c8ba153b492c (diff)
downloadlibrua-3c2bc2ca84f98d0774be350621a37a44a25f1416.tar.gz
librua-3c2bc2ca84f98d0774be350621a37a44a25f1416.tar.bz2
librua-3c2bc2ca84f98d0774be350621a37a44a25f1416.zip
Fix gtest memory leak
Change-Id: I3f46a47e5d22e8aaff0d493352b7d6112452cf94 Signed-off-by: hyunho <hhstark.kang@samsung.com>
-rw-r--r--tests/unittest/rua_manager_unit_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittest/rua_manager_unit_test.cc b/tests/unittest/rua_manager_unit_test.cc
index d596b60..b0428e5 100644
--- a/tests/unittest/rua_manager_unit_test.cc
+++ b/tests/unittest/rua_manager_unit_test.cc
@@ -402,7 +402,7 @@ TEST_F(RuaManagerTest, rua_info_get_label) {
WillOnce(Return(0));
char* label;
-
int ret = rua_info_get_label(info_, &label);
+ auto p = std::unique_ptr<char, decltype(std::free)*>(label, std::free);
EXPECT_EQ(ret, 0);
} \ No newline at end of file