X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=blobdiff_plain;f=lib%2Ftalloc%2Ftalloc.h;h=0defd4ab0e7d642fb5dc56b02a1603d6b90f6b56;hp=b62393494b6cef28e98aaf8ef31d3f279c8e1be5;hb=a3998832dbdbeb9ba5f3576a242bd48a5a3b3b60;hpb=a73bd05eec608d29888286542e9c882039b02857 diff --git a/lib/talloc/talloc.h b/lib/talloc/talloc.h index b62393494b6..0defd4ab0e7 100644 --- 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);