From 0d01fdf29a20de97d8cd5351713a340e217beb3b Mon Sep 17 00:00:00 2001 From: Chengwei Yang Date: Fri, 28 Jun 2013 14:40:14 +0800 Subject: [PATCH 3/4] Release list lock a little early Signed-off-by: Chengwei Yang --- dbus/dbus-list.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbus/dbus-list.c b/dbus/dbus-list.c index 525e067..01d3f85 100644 --- a/dbus/dbus-list.c +++ b/dbus/dbus-list.c @@ -83,10 +83,10 @@ alloc_link (void *data) link = _dbus_mem_pool_alloc (list_pool); } + _DBUS_UNLOCK (list); + if (link) link->data = data; - - _DBUS_UNLOCK (list); return link; } -- 1.7.9.5