Fix coverity issue (CID 110783)
[platform/core/telephony/tel-plugin-packetservice.git] / interface / src / ps_context_interface.c
index 222d1db..ec3d4f7 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");