diff options
author | hyunho <hhstark.kang@samsung.com> | 2020-09-17 14:36:54 +0900 |
---|---|---|
committer | hyunho <hhstark.kang@samsung.com> | 2020-09-17 14:36:54 +0900 |
commit | 3c2bc2ca84f98d0774be350621a37a44a25f1416 (patch) | |
tree | 933b0663ee4706d4b935f3c32279eca76e3b833d | |
parent | d5050b542b2b5d0a445920ef5888c8ba153b492c (diff) | |
download | librua-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.cc | 2 |
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 |