diff options
author | Tim Potter <tpot@samba.org> | 2002-01-09 03:18:49 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-01-09 03:18:49 +0000 |
commit | fd8104ce77c250c3585ba9ad43e449bdd01e7e8d (patch) | |
tree | 0aeef5b8209655fecae9e383c70b798f694ff508 | |
parent | 2ff0b75dc4cd08ee42d418fe5d030fb880804cb4 (diff) | |
download | samba-fd8104ce77c250c3585ba9ad43e449bdd01e7e8d.tar.gz samba-fd8104ce77c250c3585ba9ad43e449bdd01e7e8d.tar.xz samba-fd8104ce77c250c3585ba9ad43e449bdd01e7e8d.zip |
Merged some memory leak fixes from HEAD.
-rw-r--r-- | source/nsswitch/winbindd_user.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/nsswitch/winbindd_user.c b/source/nsswitch/winbindd_user.c index cde0ae7937d..4f9be2e7c38 100644 --- a/source/nsswitch/winbindd_user.c +++ b/source/nsswitch/winbindd_user.c @@ -166,6 +166,7 @@ enum winbindd_result winbindd_getpwnam_from_user(struct winbindd_cli_state *stat DEBUG(1, ("pwnam_from_user(): error getting user info for " "user '%s'\n", name_user)); winbindd_store_user_cache_entry(domain, name_user, &negative_pw_cache_entry); + talloc_destroy(mem_ctx); return WINBINDD_ERROR; } @@ -183,6 +184,7 @@ enum winbindd_result winbindd_getpwnam_from_user(struct winbindd_cli_state *stat user_rid, group_rid, gecos_name, &state->response.data.pw)) { winbindd_store_user_cache_entry(domain, name_user, &negative_pw_cache_entry); + talloc_destroy(mem_ctx); return WINBINDD_ERROR; } @@ -264,6 +266,7 @@ enum winbindd_result winbindd_getpwnam_from_uid(struct winbindd_cli_state *state DEBUG(1, ("pwnam_from_uid(): error getting user info for " "user '%s'\n", user_name)); winbindd_store_uid_cache_entry(domain, state->request.data.uid, &negative_pw_cache_entry); + talloc_destroy(mem_ctx); return WINBINDD_ERROR; } |