Integrate parts of meta-intel-iot-security
[AGL/meta-agl.git] / meta-security / recipes-core / dbus / dbus-cynara / 0001-Fix-memleak-in-GetConnectionCredentials-handler.patch
1 From eacdc525a1f7bfc534e248a5a946c08b6f4aab35 Mon Sep 17 00:00:00 2001
2 From: Jacek Bukarewicz <j.bukarewicz@samsung.com>
3 Date: Wed, 17 Jun 2015 18:53:41 +0100
4 Subject: [PATCH 1/8] Fix memleak in GetConnectionCredentials handler
5
6 Reply message was not unreferenced when GetConnectionCredentials
7 handler was successful.
8
9 Signed-off-by: Jacek Bukarewicz <j.bukarewicz@samsung.com>
10 [smcv: changed bus_message_unref() to dbus_message_unref()]
11 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
12 Bug: https://bugs.freedesktop.org/show_bug.cgi?id=91008
13 ---
14  bus/driver.c | 2 ++
15  1 file changed, 2 insertions(+)
16
17 diff --git a/bus/driver.c b/bus/driver.c
18 index f5d3ebe..888c7ca 100644
19 --- a/bus/driver.c
20 +++ b/bus/driver.c
21 @@ -1613,6 +1613,8 @@ bus_driver_handle_get_connection_credentials (DBusConnection *connection,
22        goto oom;
23      }
24  
25 +  dbus_message_unref (reply);
26 +
27    return TRUE;
28  
29   oom:
30 -- 
31 2.1.4
32