git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7af12d
)
dbwrap: Remove an unnecessary if-statement
author
Volker Lendecke
<vl@samba.org>
Thu, 29 Nov 2012 14:04:33 +0000
(15:04 +0100)
committer
Michael Adam
<obnox@samba.org>
Thu, 29 Nov 2012 17:27:38 +0000
(18:27 +0100)
TALLOC_FREE can live with a NULL pointer
Reviewed-by: Michael Adam <obnox@samba.org>
lib/dbwrap/dbwrap_tdb.c
patch
|
blob
|
history
diff --git
a/lib/dbwrap/dbwrap_tdb.c
b/lib/dbwrap/dbwrap_tdb.c
index f9c7ba46c4b34514b454b8381412d58f5a7a50c0..b62dcdf418343798096a8a858bec6b3082faf409 100644
(file)
--- 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;
}