diff options
author | Günther Deschner <gd@samba.org> | 2008-02-28 23:15:11 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-28 23:15:11 +0100 |
commit | bddceee09a12e6308b5e27bf666d8948b2a894d1 (patch) | |
tree | 0a359a9bdfad2456b24f725031e6848a9f8c697c | |
parent | 76de025c724d68bef1b81c8ec6081db5e0f19c4a (diff) | |
download | samba-bddceee09a12e6308b5e27bf666d8948b2a894d1.tar.gz samba-bddceee09a12e6308b5e27bf666d8948b2a894d1.tar.bz2 samba-bddceee09a12e6308b5e27bf666d8948b2a894d1.zip |
Fix memleak in netsamlogon_cache_get().
Guenther
(This used to be commit b736c77dc6c36dcdb601903fadf0ef7f163052a3)
-rw-r--r-- | source3/libsmb/samlogon_cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/samlogon_cache.c b/source3/libsmb/samlogon_cache.c index 0d855f4c6c..73b570c383 100644 --- a/source3/libsmb/samlogon_cache.c +++ b/source3/libsmb/samlogon_cache.c @@ -226,6 +226,7 @@ struct netr_SamInfo3 *netsamlogon_cache_get(TALLOC_CTX *mem_ctx, const DOM_SID * if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) { DEBUG(0,("netsamlogon_cache_get: failed to pull entry from cache\n")); tdb_delete(netsamlogon_tdb, data); + TALLOC_FREE(info3); goto done; } |