diff options
author | Simo Sorce <idra@samba.org> | 2006-10-15 23:14:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:21:04 -0500 |
commit | 59b66744f7318d8197f0d2029bf3b641dafa327e (patch) | |
tree | 03d44cfb4bc655088a411552743531246e06974b /source4/libnet/libnet_join.c | |
parent | a719444f68c7448f53ce61dc9f02e552a98fedcf (diff) | |
download | samba-59b66744f7318d8197f0d2029bf3b641dafa327e.tar.gz samba-59b66744f7318d8197f0d2029bf3b641dafa327e.tar.bz2 samba-59b66744f7318d8197f0d2029bf3b641dafa327e.zip |
r19299: Fix possible memleaks
(This used to be commit 6fad80bb09113a60689061a2de67711c9924708b)
Diffstat (limited to 'source4/libnet/libnet_join.c')
-rw-r--r-- | source4/libnet/libnet_join.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c index 57ecddd9da..8112d043f6 100644 --- a/source4/libnet/libnet_join.c +++ b/source4/libnet/libnet_join.c @@ -247,6 +247,7 @@ static NTSTATUS libnet_JoinADSDomain(struct libnet_context *ctx, struct libnet_J /* search for the user's record */ ret = ldb_search(remote_ldb, account_dn, LDB_SCOPE_BASE, NULL, attrs, &res); + talloc_steal(tmp_ctx, res); if (ret != LDB_SUCCESS || res->count != 1) { r->out.error_string = talloc_asprintf(r, "ldb_search for %s failed - %s", account_dn_str, ldb_errstring(remote_ldb)); |