summaryrefslogtreecommitdiffstats
path: root/server/infopipe
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-03-03 19:14:49 -0500
committerSimo Sorce <ssorce@redhat.com>2009-03-04 08:59:10 -0500
commit4636daa206028b0321014ebddb6b9670c805438a (patch)
tree77a6efac419b0046faa58255423455683ed6fe83 /server/infopipe
parenta4354d555eac83f628799464ae8157c0364cb8a8 (diff)
downloadsssd-4636daa206028b0321014ebddb6b9670c805438a.tar.gz
sssd-4636daa206028b0321014ebddb6b9670c805438a.tar.xz
sssd-4636daa206028b0321014ebddb6b9670c805438a.zip
Fixing memory leak in GetUserAttributes
Diffstat (limited to 'server/infopipe')
-rw-r--r--server/infopipe/infopipe_users.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/infopipe/infopipe_users.c b/server/infopipe/infopipe_users.c
index 4495f09d7..498496fd3 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);
}