Fix memory leak 71/13171/1
authortaesub.kim <taesub.kim@samsung.com>
Fri, 29 Nov 2013 01:56:54 +0000 (10:56 +0900)
committertaesub.kim <taesub.kim@samsung.com>
Fri, 29 Nov 2013 01:57:24 +0000 (10:57 +0900)
Change-Id: I18450dc7ee9700f8fff210edd264343e3a21bf9b
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
debian/changelog
packaging/capi-network-connection.spec
src/connection_profile.c

index c0ce7c9..6afb47d 100644 (file)
@@ -1,3 +1,11 @@
+capi-network-connection (0.1.3-15) unstable; urgency=low
+
+  * Fix memory leak
+  * Git: framework/api/connection
+  * Tag: capi-network-connection_0.1.3-15
+
+ -- Taesub Kim <taesub.kim@samsung.com>  Fri, 29 Nov 2013 10:52:46 +0900
+
 capi-network-connection (0.1.3-14) unstable; urgency=low
 
   * Set CFLAGS fvisibility hidden
index ce3ee13..e26d6a6 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-network-connection
 Summary:    Network Connection library in TIZEN C API
-Version:    0.1.3_14
+Version:    0.1.3_15
 Release:    1
 Group:      System/Network
 License:    Apache License Version 2.0
index f124ea5..2aaf1c2 100644 (file)
@@ -199,6 +199,7 @@ EXPORT_API int connection_profile_create(connection_profile_type_e type, const c
        case CONNECTION_PROFILE_TYPE_CELLULAR:
                if (keyword == NULL) {
                        CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
+                       g_free(profile_info);
                        return CONNECTION_ERROR_INVALID_PARAMETER;
                }
                __profile_init_cellular_profile(profile_info, keyword);