]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Remove duplicate #define of TALLOC_FREE()
authorVolker Lendecke <vl@samba.org>
Fri, 17 Oct 2025 12:46:48 +0000 (14:46 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 10 Nov 2025 13:29:30 +0000 (13:29 +0000)
These days talloc.h has it.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/include/smb_macros.h

index be81d21a296ef87bd34f63365b2440eecfa7f751..0d7ed45b770c6823fedca2d299fc43f39a83aacc 100644 (file)
@@ -211,10 +211,6 @@ copy an IP address from one buffer to another
 #define SMB_XMALLOC_P(type) (type *)smb_xmalloc_array(sizeof(type),1)
 #define SMB_XMALLOC_ARRAY(type,count) (type *)smb_xmalloc_array(sizeof(type),(count))
 
-#ifndef TALLOC_FREE
-#define TALLOC_FREE(ctx) do { talloc_free(ctx); ctx=NULL; } while(0)
-#endif
-
 /* only define PARANOID_MALLOC_CHECKER with --enable-developer */
 
 #if defined(DEVELOPER)