summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Szyndela <adrian.s@samsung.com>2016-08-16 10:47:13 +0200
committerAdrian Szyndela <adrian.s@samsung.com>2016-08-16 10:48:21 +0200
commitcde09d13b75241252db797db6f0efde436089073 (patch)
tree4ad81b927df34cd83a6e759632c8d4684facfa5a
parent52f6de04b3388c4a67e3e9289bfc5dc7d65c80aa (diff)
downloaddbus-cde09d13b75241252db797db6f0efde436089073.tar.gz
dbus-cde09d13b75241252db797db6f0efde436089073.tar.bz2
dbus-cde09d13b75241252db797db6f0efde436089073.zip
kdbus: fixed memory leak in "hello" command.
Change-Id: I0f5c1882a9ffcc9a0186a834ad73e72a10b9f239
-rw-r--r--dbus/kdbus-common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dbus/kdbus-common.c b/dbus/kdbus-common.c
index 03428aaf..bfceef94 100644
--- a/dbus/kdbus-common.c
+++ b/dbus/kdbus-common.c
@@ -339,7 +339,7 @@ _kdbus_hello (kdbus_t *kdbus,
const char *activator_name,
const char *connection_name)
{
- struct kdbus_cmd_hello *hello;
+ struct kdbus_cmd_hello *hello;
struct kdbus_item *item, *items;
__u64 hello_size;
size_t activator_name_size = 0;
@@ -415,6 +415,8 @@ _kdbus_hello (kdbus_t *kdbus,
kdbus->bloom = item->bloom_parameter;
}
+ free_by_offset (kdbus, offset);
+
return 0;
}