pdb_tdb: Fix a TALLOC/SAFE_FREE mixup
authorVolker Lendecke <vl@samba.org>
Tue, 11 Nov 2014 10:35:50 +0000 (10:35 +0000)
committerDavid Disseldorp <ddiss@samba.org>
Tue, 11 Nov 2014 12:59:05 +0000 (13:59 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
source3/passdb/pdb_tdb.c

index 0d31c47bfa61e3e71ac8a0824d64d122e327d5cc..ba1f1d4033f946613f1202a1d39cc3c10442fe87 100644 (file)
@@ -606,7 +606,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;
        }