diff options
author | Simo Sorce <idra@samba.org> | 2005-05-07 16:04:37 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2005-05-07 16:04:37 +0000 |
commit | d69dd27cfaf4511c256c3ce5fe1e352ec98fc4be (patch) | |
tree | f0f15d5d7c429417a02147f7a70709ad7ef038ee /source/lib/talloc.c | |
parent | 2ec141e40dd1465838eed59009c9cf82b329fe4f (diff) | |
download | samba-d69dd27cfaf4511c256c3ce5fe1e352ec98fc4be.tar.gz samba-d69dd27cfaf4511c256c3ce5fe1e352ec98fc4be.tar.xz samba-d69dd27cfaf4511c256c3ce5fe1e352ec98fc4be.zip |
r6646: keep samba3 talloc inline with samba4 one
Diffstat (limited to 'source/lib/talloc.c')
-rw-r--r-- | source/lib/talloc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/lib/talloc.c b/source/lib/talloc.c index da3a2300b0a..4aeac5fef20 100644 --- a/source/lib/talloc.c +++ b/source/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; +} |