Fix coverity issue (CID 110783) 89/173389/1 accepted/tizen/unified/20180322.060226 submit/tizen/20180321.073436 submit/tizen/20180322.004755
authorsinikang <sinikang@samsung.com>
Wed, 21 Mar 2018 06:49:21 +0000 (15:49 +0900)
committersinikang <sinikang@samsung.com>
Wed, 21 Mar 2018 06:49:21 +0000 (15:49 +0900)
Change-Id: I6c9799fb7d9ce0bbd678dc5ac979a475d40af265

interface/src/ps_context_interface.c
packaging/tel-plugin-packetservice.spec

index 222d1db782c37efe2e36a62923bd221ccb421fba..ec3d4f72313ac01f4ede32c87084fe49c13713c0 100644 (file)
@@ -304,6 +304,9 @@ static gboolean on_context_handle_activate(PacketServiceContext *obj_context,
        num_of_active_cids = g_slist_length(active_cids);
        max_pdn = tcore_ps_get_num_of_pdn(co_ps);
        ps_info_ex_ctx(context, "activate cids(%d), max pdn(%d)", num_of_active_cids, max_pdn);
+
+       g_slist_free_full(active_cids, g_free);
+
        if (num_of_active_cids < max_pdn) {
                ps_dbg_ex_ctx(context, "enough to active another pdn");
 
index b4f2d484978f7c373a20e8ad4f95e025d71db7ce..6f4ef31cef80a4226f7f90fd137a6994855b70ed 100644 (file)
@@ -4,7 +4,7 @@
 
 %define major 0
 %define minor 4
-%define patchlevel 18
+%define patchlevel 19
 
 Name:           tel-plugin-packetservice
 Version:        %{major}.%{minor}.%{patchlevel}