Skip to content

Commit

Permalink
[Test] fix mem leak
Browse files Browse the repository at this point in the history
Code clean, fix mem leak case in custom connection test.

Signed-off-by: Jaeyun Jung <[email protected]>
  • Loading branch information
jaeyun-jung authored and myungjoo committed Jan 2, 2025
1 parent 86cbd0f commit c9c21a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unittest_nnstreamer-edge-custom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"

/**
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c9c21a9

Please sign in to comment.