diff options
Diffstat (limited to 'src/counter.c')
-rwxr-xr-x[-rw-r--r--] | src/counter.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/counter.c b/src/counter.c index 06e5daff..8ea6205b 100644..100755 --- a/src/counter.c +++ b/src/counter.c @@ -133,8 +133,11 @@ void __connman_counter_send_usage(const char *path, struct connman_counter *counter; counter = g_hash_table_lookup(counter_table, path); - if (!counter) + if (!counter) { + if (message) + dbus_message_unref(message); return; + } dbus_message_set_destination(message, counter->owner); dbus_message_set_path(message, counter->path); |