tests: Free after use (2) 38/256638/1 submit/tizen/20210408.090200
authorCheoleun Moon <chleun.moon@samsung.com>
Thu, 8 Apr 2021 08:48:45 +0000 (17:48 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Thu, 8 Apr 2021 08:48:50 +0000 (17:48 +0900)
Change-Id: I59ecb802b1b4f79c3cc143b99589e4aa711b3a6a
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
tests/vine-test/vine-test.cpp

index 4102b23..00a8cf6 100644 (file)
@@ -252,6 +252,8 @@ static void __discovered_cb(vine_session_h session, vine_service_h service,
        fflush(stdout);
 
        g_service_list.push_back(service);
+       free(service_type);
+       free(service_name);
 }
 
 static void __print_received_data(unsigned char *buf, size_t len)