Fix memleak in netsamlogon_cache_get().
authorGünther Deschner <gd@samba.org>
Thu, 28 Feb 2008 22:15:11 +0000 (23:15 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 28 Feb 2008 22:15:11 +0000 (23:15 +0100)
Guenther

source/libsmb/samlogon_cache.c

index 0d855f4c6c7f40f7a850b963d144b8d954ea1998..73b570c38342fe7f7983aa994fa36f297bbde9f4 100644 (file)
@@ -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;
        }