diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2012-10-17 10:46:14 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-10-17 12:19:29 +0300 |
commit | 45d78b9b12b6242d40a3e65fd8ada7be1329e1e6 (patch) | |
tree | 835f690ac85307cf4c615ebb2da89be883a779e1 /client/services.c | |
parent | 9f03ec3e6b54222a5d7f9993e8543d6699c15f89 (diff) | |
download | connman-45d78b9b12b6242d40a3e65fd8ada7be1329e1e6.tar.gz connman-45d78b9b12b6242d40a3e65fd8ada7be1329e1e6.tar.bz2 connman-45d78b9b12b6242d40a3e65fd8ada7be1329e1e6.zip |
client: Fix various memory leaks in monitor and services parts
Diffstat (limited to 'client/services.c')
-rw-r--r-- | client/services.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/client/services.c b/client/services.c index a7dfe36e..e4f177cd 100644 --- a/client/services.c +++ b/client/services.c @@ -408,8 +408,10 @@ int set_proxy_manual(DBusConnection *connection, DBusMessage *message, "net.connman.Service", "SetProperty"); - if (message_send == NULL) + if (message_send == NULL) { + g_free(path); return -ENOMEM; + } dbus_message_iter_init_append(message_send, &iter); dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &property); @@ -443,6 +445,8 @@ int set_proxy_manual(DBusConnection *connection, DBusMessage *message, dbus_connection_flush(connection); dbus_message_unref(message_send); + g_free(path); + return 0; } @@ -465,8 +469,10 @@ int set_service_property(DBusConnection *connection, DBusMessage *message, "net.connman.Service", "SetProperty"); - if (message_send == NULL) + if (message_send == NULL) { + g_free(path); return -ENOMEM; + } dbus_message_iter_init_append(message_send, &iter); |