Fix double free issue (WGID-348564) 85/183685/1 submit/tizen/20180710.041641
authorchleun.moon <chleun.moon@samsung.com>
Tue, 10 Jul 2018 04:00:32 +0000 (13:00 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Tue, 10 Jul 2018 04:00:38 +0000 (13:00 +0900)
Change-Id: I70ade27dedc2adfb3474f524ea1b51055939c183
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
packaging/mobileap-agent.spec
src/mobileap_network.c

index 65eeeef..8b43567 100644 (file)
@@ -1,6 +1,6 @@
 Name: mobileap-agent
 Summary: Mobile AP daemon for setting tethering environments
-Version: 1.0.124
+Version: 1.0.125
 Release: 1
 Group: System/Network
 License: Apache-2.0
index d563e32..4cae712 100644 (file)
@@ -1233,11 +1233,8 @@ static int __update_ipv6_network_info(void)
                ipv6_net_info.prefix = g_strdup(prefix);
        }
 
-       if (_get_network_dns_address(MOBILE_AP_ADDRESS_TYPE_IPV6, &dns) == FALSE) {
+       if (_get_network_dns_address(MOBILE_AP_ADDRESS_TYPE_IPV6, &dns) == FALSE)
                ERR("Fail to get dns address!!");
-               g_free(dns);
-               dns = NULL;
-       }
 
        if (dns)
                ipv6_net_info.dns = g_strdup(dns);