Fixed memory leak 90/125590/1 accepted/tizen/unified/20170420.155739 submit/tizen/20170420.091040
authorSeonah Moon <seonah1.moon@samsung.com>
Tue, 18 Apr 2017 05:22:45 +0000 (14:22 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Tue, 18 Apr 2017 05:23:02 +0000 (14:23 +0900)
Change-Id: Ie0d1194237ff216e440924bd92b6ce325ffe8142
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
packaging/mobileap-agent.spec
src/mobileap_network.c

index 8879106..0d34db5 100644 (file)
@@ -1,6 +1,6 @@
 Name: mobileap-agent
 Summary: Mobile AP daemon for setting tethering environments
-Version: 1.0.94
+Version: 1.0.95
 Release: 1
 Group: System/Network
 License: Apache-2.0
index 5ac0d98..6dd2be3 100644 (file)
@@ -1282,7 +1282,9 @@ static int __update_ipv6_network_info(void)
                if (_get_ipv6_interface_address(if_name, MOBILE_AP_IPV6_SCOPE_GLOBAL, &global_address) == FALSE) {
                        ERR("Current network doesn't support IPv6");
                        g_free(if_name);
+                       if_name = NULL;
                        g_free(global_address);
+                       global_address = NULL;
                }
        }