From c9c21a9350ada79f438e816e97f6690be0e8c442 Mon Sep 17 00:00:00 2001 From: Jaeyun Jung Date: Thu, 2 Jan 2025 13:59:31 +0900 Subject: [PATCH] [Test] fix mem leak Code clean, fix mem leak case in custom connection test. Signed-off-by: Jaeyun Jung --- tests/unittest_nnstreamer-edge-custom.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unittest_nnstreamer-edge-custom.cc b/tests/unittest_nnstreamer-edge-custom.cc index ef07c70..07ffb6c 100644 --- a/tests/unittest_nnstreamer-edge-custom.cc +++ b/tests/unittest_nnstreamer-edge-custom.cc @@ -12,6 +12,7 @@ #include "nnstreamer-edge-data.h" #include "nnstreamer-edge-event.h" #include "nnstreamer-edge-log.h" +#include "nnstreamer-edge-util.h" #include "nnstreamer-edge.h" /** @@ -96,6 +97,7 @@ TEST (edgeCustom, expectedReturn) ret = nns_edge_get_info (edge_h, "PEER_ADDRESS", &ret_str); EXPECT_EQ (NNS_EDGE_ERROR_NONE, ret); EXPECT_STREQ ("TE:MP:AD:DR:ES:SS", ret_str); + SAFE_FREE (ret_str); ret = nns_edge_start (edge_h); EXPECT_EQ (NNS_EDGE_ERROR_NONE, ret);