diff options
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/dbus/dbus.inc | 1 | ||||
-rw-r--r-- | meta/recipes-core/dbus/dbus/fixed-memory-freeing-if-error-during-listing-service.patch | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc index 5d57ff4bb4..5727ae77b2 100644 --- a/meta/recipes-core/dbus/dbus.inc +++ b/meta/recipes-core/dbus/dbus.inc | |||
@@ -16,6 +16,7 @@ SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \ | |||
16 | file://os-test.patch \ | 16 | file://os-test.patch \ |
17 | file://clear-guid_from_server-if-send_negotiate_unix_f.patch \ | 17 | file://clear-guid_from_server-if-send_negotiate_unix_f.patch \ |
18 | file://Set-correct-address-when-using-address-systemd.patch \ | 18 | file://Set-correct-address-when-using-address-systemd.patch \ |
19 | file://fixed-memory-freeing-if-error-during-listing-service.patch \ | ||
19 | " | 20 | " |
20 | 21 | ||
21 | inherit useradd autotools pkgconfig gettext update-rc.d | 22 | inherit useradd autotools pkgconfig gettext update-rc.d |
diff --git a/meta/recipes-core/dbus/dbus/fixed-memory-freeing-if-error-during-listing-service.patch b/meta/recipes-core/dbus/dbus/fixed-memory-freeing-if-error-during-listing-service.patch new file mode 100644 index 0000000000..96290f41be --- /dev/null +++ b/meta/recipes-core/dbus/dbus/fixed-memory-freeing-if-error-during-listing-service.patch | |||
@@ -0,0 +1,45 @@ | |||
1 | From 03aeaccbffa97c9237b57ca067e3da7388862129 Mon Sep 17 00:00:00 2001 | ||
2 | From: Radoslaw Pajak <r.pajak@samsung.com> | ||
3 | Date: Fri, 8 Nov 2013 13:51:32 +0100 | ||
4 | Subject: [PATCH] fixed memory freeing if error during listing services | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | |||
8 | Signed-off-by: Radoslaw Pajak <r.pajak@samsung.com> | ||
9 | Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> | ||
10 | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71526 | ||
11 | Signed-off-by: Jonathan Liu <net147@gmail.com> | ||
12 | --- | ||
13 | bus/activation.c | 2 +- | ||
14 | bus/services.c | 2 +- | ||
15 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
16 | |||
17 | diff --git a/bus/activation.c b/bus/activation.c | ||
18 | index fcb7133..ea48a26 100644 | ||
19 | --- a/bus/activation.c | ||
20 | +++ b/bus/activation.c | ||
21 | @@ -2179,7 +2179,7 @@ bus_activation_list_services (BusActivation *activation, | ||
22 | |||
23 | error: | ||
24 | for (j = 0; j < i; j++) | ||
25 | - dbus_free (retval[i]); | ||
26 | + dbus_free (retval[j]); | ||
27 | dbus_free (retval); | ||
28 | |||
29 | return FALSE; | ||
30 | diff --git a/bus/services.c b/bus/services.c | ||
31 | index 6f380fa..01a720e 100644 | ||
32 | --- a/bus/services.c | ||
33 | +++ b/bus/services.c | ||
34 | @@ -368,7 +368,7 @@ bus_registry_list_services (BusRegistry *registry, | ||
35 | |||
36 | error: | ||
37 | for (j = 0; j < i; j++) | ||
38 | - dbus_free (retval[i]); | ||
39 | + dbus_free (retval[j]); | ||
40 | dbus_free (retval); | ||
41 | |||
42 | return FALSE; | ||
43 | -- | ||
44 | 1.9.0 | ||
45 | |||