1
0
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:
Volker Lendecke 2012-11-29 15:04:33 +01:00 committed by Michael Adam
parent c7af12dd30
commit e271db4fd8

View File

@ -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;
}