summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-11-29 15:04:33 +0100
committerMichael Adam <obnox@samba.org>2012-11-29 18:27:38 +0100
commite271db4fd82d03b39a5872b1a3fde5e2a16e1633 (patch)
tree927cec657c3bb923b508c24fef81c80c6b2640e8
parentc7af12dd30f9670806b161b94d91b741d06813e2 (diff)
downloadsamba-e271db4fd82d03b39a5872b1a3fde5e2a16e1633.tar.gz
samba-e271db4fd82d03b39a5872b1a3fde5e2a16e1633.tar.bz2
samba-e271db4fd82d03b39a5872b1a3fde5e2a16e1633.zip
dbwrap: Remove an unnecessary if-statement
TALLOC_FREE can live with a NULL pointer Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--lib/dbwrap/dbwrap_tdb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/dbwrap/dbwrap_tdb.c b/lib/dbwrap/dbwrap_tdb.c
index f9c7ba46c4..b62dcdf418 100644
--- a/lib/dbwrap/dbwrap_tdb.c
+++ b/lib/dbwrap/dbwrap_tdb.c
@@ -478,8 +478,6 @@ struct db_context *db_open_tdb(TALLOC_CTX *mem_ctx,
return result;
fail:
- if (result != NULL) {
- TALLOC_FREE(result);
- }
+ TALLOC_FREE(result);
return NULL;
}