projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a7f588
)
memoryleak: method was not freed
author
Jukka Rissanen
<jukka.rissanen@nokia.com>
Fri, 31 Dec 2010 09:57:07 +0000
(11:57 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 31 Dec 2010 18:08:39 +0000
(10:08 -0800)
src/ipconfig.c
patch
|
blob
|
history
diff --git
a/src/ipconfig.c
b/src/ipconfig.c
index
57e3218
..
690b51e
100644
(file)
--- 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)
{
- c
onst c
har *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);