[CID-28677] Fix memory leak 14/152814/1
authorchleun.moon <chleun.moon@samsung.com>
Wed, 27 Sep 2017 07:10:00 +0000 (16:10 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Wed, 27 Sep 2017 07:10:05 +0000 (16:10 +0900)
Change-Id: I87c3d1aec9da14276d7c44c34dd1b3b8f69f9c9c
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
packaging/capi-network-asp.spec
src/asp-client.c

index 39fa651..e5ef70e 100755 (executable)
@@ -2,7 +2,7 @@
 
 Name:       capi-network-asp
 Summary:    An Application Service Platform(ASP) libraries in Native API
-Version:    0.0.15
+Version:    0.0.16
 Release:    1
 Group:      Network & Connectivity/API
 License:    Apache-2.0
index 4448850..adf180f 100644 (file)
@@ -189,6 +189,7 @@ void asp_process_seek_search_result(GDBusConnection *connection,
                } else if (!g_strcmp0(key, "instance_name")) {
                        g_variant_get(var, "&s", &instance_name);
                } else if (!g_strcmp0(key, "service_info")) {
+                       g_free(service_info);
                        service_info = __asp_create_service_info_from_g_variant(var);
                        if (service_info)
                                ASP_LOGD("Service Info: %s", service_info);