diff options
author | Jukka Rissanen <jukka.rissanen@nokia.com> | 2010-12-31 11:57:07 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-12-31 10:08:39 -0800 |
commit | feca9aaa57a083848bf4ac02fe9837d382e0667d (patch) | |
tree | 67bcf4b12e69a2e2573f2353320ed0e66f38e5f5 | |
parent | 0a7f588061a1504245985e7325b662f9302ff11c (diff) | |
download | connman-feca9aaa57a083848bf4ac02fe9837d382e0667d.tar.gz connman-feca9aaa57a083848bf4ac02fe9837d382e0667d.tar.bz2 connman-feca9aaa57a083848bf4ac02fe9837d382e0667d.zip |
memoryleak: method was not freed
-rw-r--r-- | src/ipconfig.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ipconfig.c b/src/ipconfig.c index 57e3218f..690b51e5 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); |