pdb_tdb: Fix a TALLOC/SAFE_FREE mixup
authorVolker Lendecke <vl@samba.org>
Tue, 11 Nov 2014 10:35:50 +0000 (10:35 +0000)
committerKarolin Seeger <kseeger@samba.org>
Tue, 18 Nov 2014 20:09:03 +0000 (21:09 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10932
invalid free in pdb_tdb

source3/passdb/pdb_tdb.c

index bd6e123e31cfa13a59806f68f1e4c13c8b029a4a..b426d474ba08b47883d2a986239650405590c9d8 100644 (file)
@@ -599,7 +599,7 @@ static NTSTATUS tdbsam_getsampwnam (struct pdb_methods *my_methods,
 
        if (!init_samu_from_buffer(user, SAMU_BUFFER_LATEST, data.dptr, data.dsize)) {
                DEBUG(0,("pdb_getsampwent: Bad struct samu entry returned from TDB!\n"));
-               SAFE_FREE(data.dptr);
+               TALLOC_FREE(data.dptr);
                return NT_STATUS_NO_MEMORY;
        }