projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b272bf
)
Fix memory leak with group name construction
author
Marcel Holtmann
<marcel@holtmann.org>
Tue, 14 Jul 2009 07:41:07 +0000
(09:41 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 14 Jul 2009 07:41:07 +0000
(09:41 +0200)
plugins/supplicant.c
patch
|
blob
|
history
diff --git
a/plugins/supplicant.c
b/plugins/supplicant.c
index
5826020
..
d9e3eb1
100644
(file)
--- a/
plugins/supplicant.c
+++ b/
plugins/supplicant.c
@@
-1136,7
+1136,7
@@
static void properties_reply(DBusPendingCall *call, void *user_data)
unsigned char strength;
unsigned short channel, frequency;
const char *mode, *security;
- char *group;
+ char *group
= NULL
;
unsigned int ssid_len;
DBG("task %p", task);
@@
-1295,9
+1295,9
@@
static void properties_reply(DBusPendingCall *call, void *user_data)
connman_network_set_group(network, group);
+done:
g_free(group);
-done:
g_free(result.path);
g_free(result.addr);
g_free(result.name);