---
 src/ipconfig.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/ipconfig.c b/src/ipconfig.c
index 57e3218..690b51e 100644
--- a/src/ipconfig.c
+++ b/src/ipconfig.c
@@ -1634,7 +1634,7 @@ void __connman_ipconfig_append_ethernet(struct 
connman_ipconfig *ipconfig,
 int __connman_ipconfig_load(struct connman_ipconfig *ipconfig,
                GKeyFile *keyfile, const char *identifier, const char *prefix)
 {
-       const char *method;
+       char *method;
        char *key;
 
        DBG("ipconfig %p identifier %s", ipconfig, identifier);
@@ -1652,6 +1652,7 @@ int __connman_ipconfig_load(struct connman_ipconfig 
*ipconfig,
        if (ipconfig->method == CONNMAN_IPCONFIG_METHOD_UNKNOWN)
                ipconfig->method = CONNMAN_IPCONFIG_METHOD_OFF;
 
+       g_free(method);
        g_free(key);
 
        key = g_strdup_printf("%snetmask_prefixlen", prefix);
-- 
1.7.0.4

_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to