s3: Fix Coverity ID 710803 Resource leak
authorVolker Lendecke <vl@samba.org>
Mon, 30 Jul 2012 12:48:28 +0000 (14:48 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 31 Jul 2012 09:40:23 +0000 (11:40 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/passdb/pdb_tdb.c

index e0b6261eb9d6e445e34c689daa262a6f45662d2b..12958623036ef17be56dadb39750fd024b063480 100644 (file)
@@ -1189,6 +1189,7 @@ static bool tdbsam_search_next_entry(struct pdb_search *search,
        }
 
        if (state->current == state->num_rids) {
+               TALLOC_FREE(user);
                return false;
        }