Fixed some svace for memory leak 76/132876/1 accepted/tizen/unified/20170609.203905 submit/tizen/20170608.073827 submit/tizen/20170609.022610
authorhyunuktak <hyunuk.tak@samsung.com>
Thu, 8 Jun 2017 05:55:06 +0000 (14:55 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Thu, 8 Jun 2017 05:55:10 +0000 (14:55 +0900)
Change-Id: I1a08663145653c7186eed679f23391ab321476ca
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
packaging/capi-network-stc.spec
test/restriction.c

index 1101b23..446486f 100755 (executable)
@@ -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
index 27df0dc..dc57f24 100755 (executable)
@@ -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);
 }