From: hyunuktak Date: Thu, 8 Jun 2017 05:55:06 +0000 (+0900) Subject: Fixed some svace for memory leak X-Git-Tag: submit/tizen/20170608.073827^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3062aa3a8ab49322e62b11cc9cf7b9489558efe9;p=platform%2Fcore%2Fapi%2Fsmart-traffic-control.git Fixed some svace for memory leak Change-Id: I1a08663145653c7186eed679f23391ab321476ca Signed-off-by: hyunuktak --- diff --git a/packaging/capi-network-stc.spec b/packaging/capi-network-stc.spec index 1101b23..446486f 100755 --- a/packaging/capi-network-stc.spec +++ b/packaging/capi-network-stc.spec @@ -1,6 +1,6 @@ Name: capi-network-stc Summary: A Smart Traffic Control (STC) libraries in Native API -Version: 0.0.8 +Version: 0.0.9 Release: 1 Group: Network & Connectivity/API License: Apache-2.0 diff --git a/test/restriction.c b/test/restriction.c index 27df0dc..dc57f24 100755 --- a/test/restriction.c +++ b/test/restriction.c @@ -136,6 +136,7 @@ static void __test_stc_warn_threshold_crossed_cb(stc_restriction_info_h info, if (ret == STC_ERROR_NONE) msg("Warn threshold crossed app_id: " LOG_CYAN "[%s]" LOG_END, app_id); + g_free(app_id); msg(HR_SINGLE); } @@ -151,6 +152,7 @@ static void __test_stc_restriction_threshold_crossed_cb(stc_restriction_info_h i if (ret == STC_ERROR_NONE) msg("Restriction threshold crossed app_id: " LOG_CYAN "[%s]" LOG_END, app_id); + g_free(app_id); msg(HR_SINGLE); }