diff options
author | Simo Sorce <idra@samba.org> | 2005-05-07 16:04:37 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:49 -0500 |
commit | 8f09abffd3d58f419a55159dadc7ae099b59595f (patch) | |
tree | 95d2edff9ad9efd63d955f2498e573dd1e123261 /source3/lib | |
parent | f1714eacf7365c731f6802972bff3fc62e72b8d0 (diff) | |
download | samba-8f09abffd3d58f419a55159dadc7ae099b59595f.tar.gz samba-8f09abffd3d58f419a55159dadc7ae099b59595f.tar.bz2 samba-8f09abffd3d58f419a55159dadc7ae099b59595f.zip |
r6646: keep samba3 talloc inline with samba4 one
(This used to be commit 4deebbbe50932792621114bf1e74b0c994bda7be)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/talloc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/lib/talloc.c b/source3/lib/talloc.c index da3a2300b0..4aeac5fef2 100644 --- a/source3/lib/talloc.c +++ b/source3/lib/talloc.c @@ -1081,4 +1081,13 @@ void *talloc_autofree_context(void) return cleanup_context; } +size_t talloc_get_size(const void *context) { + struct talloc_chunk *tc; + + if (context == NULL) + return 0; + tc = talloc_chunk_from_ptr(context); + + return tc->size; +} |