Fix memory leak issue 25/122325/2 accepted/tizen/common/20170331.152837 accepted/tizen/ivi/20170331.083325 accepted/tizen/mobile/20170331.083446 accepted/tizen/tv/20170331.083309 accepted/tizen/unified/20170331.083628 accepted/tizen/wearable/20170331.083412 submit/tizen/20170331.065508
authorWootak Jung <wootak.jung@samsung.com>
Fri, 31 Mar 2017 05:22:19 +0000 (14:22 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Fri, 31 Mar 2017 06:37:28 +0000 (15:37 +0900)
Change-Id: I3088831a218d33af579b51872416b0fccc3318db

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

index 469747b..17d6417 100644 (file)
@@ -526,7 +526,7 @@ static gboolean on_context_modify_profile(PacketServiceContext *obj_context,
 
        /*Creating the profile property hash for for internal handling*/
        /*Create a hash table for the profile property as all fucntion already use ghash table */
-       profile_property = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
+       profile_property = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
        g_variant_iter_init(&g_iter, property);
        while (g_variant_iter_next(&g_iter, "{ss}", &g_key, &g_value)) {
 
@@ -633,6 +633,7 @@ gboolean _ps_context_handling_nas_timer(ps_context_t *context, gboolean value)
        ps_dbg_ex_ctx(context, "dev_name(%s)", dev_name);
 
        params = g_variant_new("(sb)", dev_name, value);
+       g_free(dev_name);
 
        connection = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &error);
        if (!connection) {
index 8e245e5..0a5467f 100644 (file)
@@ -4,7 +4,7 @@
 
 %define major 0
 %define minor 4
-%define patchlevel 4
+%define patchlevel 5
 
 Name:           tel-plugin-packetservice
 Version:        %{major}.%{minor}.%{patchlevel}