The branch, master has been updated via 48a6feef402f7b91098341dc6e5eabbfd4beaa91 (commit) from b7eabeb347d6815a7a4a0ece282dba5da94777ca (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 48a6feef402f7b91098341dc6e5eabbfd4beaa91 Author: Volker Lendecke <v...@samba.org> Date: Fri Jan 23 23:15:05 2009 +0100 talloc_free() copes with a NULL pointer just fine Saved around 10kb of code on my box :-) ----------------------------------------------------------------------- Summary of changes: source3/include/smb_macros.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h index 5149da0..92c60a7 100644 --- a/source3/include/smb_macros.h +++ b/source3/include/smb_macros.h @@ -256,7 +256,7 @@ NULL returns on zero request. JRA. #define TALLOC_REALLOC(ctx, ptr, count) _talloc_realloc(ctx, ptr, count, __location__) #define TALLOC_REALLOC_ARRAY(ctx, ptr, type, count) (type *)_talloc_realloc_array(ctx, ptr, sizeof(type), count, #type) #define talloc_destroy(ctx) talloc_free(ctx) -#define TALLOC_FREE(ctx) do { if ((ctx) != NULL) {talloc_free(ctx); ctx=NULL;} } while(0) +#define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0) /* only define PARANOID_MALLOC_CHECKER with --enable-developer */ -- Samba Shared Repository