git.samba.org
/
mdw
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a73bd05
)
talloc: add TALLOC_ZERO()
author
Stefan Metzmacher
<metze@samba.org>
Mon, 16 Mar 2009 09:13:58 +0000
(10:13 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Mon, 16 Mar 2009 10:14:53 +0000
(11:14 +0100)
metze
lib/talloc/talloc.h
patch
|
blob
|
history
diff --git
a/lib/talloc/talloc.h
b/lib/talloc/talloc.h
index b62393494b6cef28e98aaf8ef31d3f279c8e1be5..0defd4ab0e7d642fb5dc56b02a1603d6b90f6b56 100644
(file)
--- a/
lib/talloc/talloc.h
+++ b/
lib/talloc/talloc.h
@@
-115,6
+115,8
@@
typedef void TALLOC_CTX;
#define talloc_append_string(c, s, a) (s?talloc_strdup_append(s,a):talloc_strdup(c, a))
#endif
+#define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0)
+
/* The following definitions come from talloc.c */
void *_talloc(const void *context, size_t size);
void *talloc_pool(const void *context, size_t size);