Fix CID 469. new_acct can't be NULL here.
authorJeremy Allison <jra@samba.org>
Sat, 12 Jan 2008 08:09:35 +0000 (00:09 -0800)
committerJeremy Allison <jra@samba.org>
Sat, 12 Jan 2008 08:09:35 +0000 (00:09 -0800)
Jeremy.

source/passdb/pdb_tdb.c

index 5ee1cdc0c0ba7e1247ac3d798ea0885d38a3a69c..b05a42b32c4417d5d124019fafc77b782023823d 100644 (file)
@@ -1352,8 +1352,7 @@ done:
 
        tdbsam_close();
 
-       if (new_acct)
-               TALLOC_FREE(new_acct);
+       TALLOC_FREE(new_acct);
        
        return NT_STATUS_ACCESS_DENIED; 
 }