diff options
-rw-r--r-- | lib/dbwrap/dbwrap_tdb.c | 4 |
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; } |