svn commit: samba r17927 - in branches/SAMBA_3_0_23/source/libsmb: .

tridge at samba.org tridge at samba.org
Mon Sep 4 04:29:12 GMT 2006


Jeremy,

 > Err, 'cos I remember the talloc_destroy syntax
 > better

Just in case you don't know, the syntax is given by the following:

#if TALLOC_DEPRECATED
#define talloc_zero_p(ctx, type) talloc_zero(ctx, type)
#define talloc_p(ctx, type) talloc(ctx, type)
#define talloc_array_p(ctx, type, count) talloc_array(ctx, type, count)
#define talloc_realloc_p(ctx, p, type, count) talloc_realloc(ctx, p, type, count)
#define talloc_destroy(ctx) talloc_free(ctx)
#endif

talloc_destroy() has been marked deprecated as the concept of a
separate "destroy pool" operation from a "free memory" operation goes
away with the new talloc. Every pointer is also a pool, so it makes no
sense to have a separate operation.

Cheers, Tridge


More information about the samba-technical mailing list