mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
dbwrap: Remove an unnecessary if-statement
TALLOC_FREE can live with a NULL pointer Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
c7af12dd30
commit
e271db4fd8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user