summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-07-14 09:41:07 +0200
committerMarcel Holtmann <marcel@holtmann.org>2009-07-14 09:41:07 +0200
commit1e1540021772dbc0f1445fee2f43dd8739746b9e (patch)
treea5ff43573c57ba4cb8b5a10e9ab271c62ff24586 /plugins
parent9b272bf1cd25626dd5e00fc304d474ca42756844 (diff)
downloadconnman-1e1540021772dbc0f1445fee2f43dd8739746b9e.tar.gz
connman-1e1540021772dbc0f1445fee2f43dd8739746b9e.tar.bz2
connman-1e1540021772dbc0f1445fee2f43dd8739746b9e.zip
Fix memory leak with group name construction
Diffstat (limited to 'plugins')
-rw-r--r--plugins/supplicant.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/supplicant.c b/plugins/supplicant.c
index 58260204..d9e3eb1c 100644
--- 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);