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:
f1054d9
)
provider: Fix memory leak
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Wed, 14 Sep 2011 12:32:53 +0000
(15:32 +0300)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 29 Sep 2011 14:49:52 +0000
(16:49 +0200)
Provider name is already allocated in connman_provider_get() so we
must deallocate it before setting it again.
src/provider.c
patch
|
blob
|
history
diff --git
a/src/provider.c
b/src/provider.c
index
8f1862e
..
d6d1b7e
100644
(file)
--- a/
src/provider.c
+++ b/
src/provider.c
@@
-533,6
+533,7
@@
int __connman_provider_create_and_connect(DBusMessage *msg)
provider->host = g_strdup(host);
provider->domain = g_strdup(domain);
+ g_free(provider->name);
provider->name = g_strdup(name);
provider->type = g_strdup(type);