From e271db4fd82d03b39a5872b1a3fde5e2a16e1633 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 29 Nov 2012 15:04:33 +0100 Subject: dbwrap: Remove an unnecessary if-statement TALLOC_FREE can live with a NULL pointer Reviewed-by: Michael Adam --- lib/dbwrap/dbwrap_tdb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/dbwrap') 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; } -- cgit