From 4636daa206028b0321014ebddb6b9670c805438a Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 3 Mar 2009 19:14:49 -0500 Subject: Fixing memory leak in GetUserAttributes --- server/infopipe/infopipe_users.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server') diff --git a/server/infopipe/infopipe_users.c b/server/infopipe/infopipe_users.c index 4495f09d..498496fd 100644 --- a/server/infopipe/infopipe_users.c +++ b/server/infopipe/infopipe_users.c @@ -374,7 +374,7 @@ static void infp_get_attr_lookup_callback(void *ptr, int ldb_status, struct ldb_ bool call_provider = false; int timeout; uint64_t lastUpdate; - DBusMessage *reply; + DBusMessage *reply = NULL; DBusMessageIter iter; DBusMessageIter array_iter; struct infp_getattr_ctx *infp_getattr_req = talloc_get_type(ptr, struct infp_getattr_ctx); @@ -467,6 +467,7 @@ static void infp_get_attr_lookup_callback(void *ptr, int ldb_status, struct ldb_ sbus_conn_send_reply(infp_getattr_req->infp_req->sconn, reply); done: + if(reply) dbus_message_unref(reply); talloc_free(infp_getattr_req); } -- cgit