Displaying 1 result from an estimated 1 matches for "talloc_chunk".
Did you mean:
alloc_chunk
2000 Apr 29
0
fix to lib/talloc.c
...With this patch,
1) calling malloc() within talloc.c will become 1/2( well, at least,
nearly half ).
2) If you are using glibc2's malloc, then entire talloced space will
be returned to system at talloc_destroy() time.
# Original code has chance of keeping space for
# 'struct talloc_chunk'.
--- ./source/lib/talloc.c 2000/04/28 12:04:08 1.1
+++ ./source/lib/talloc.c 2000/04/29 14:23:16
@@ -55,25 +55,22 @@
void *talloc(TALLOC_CTX *t, size_t size)
{
void *p;
- size = (size + TALLOC_ALIGN) & (~TALLOC_ALIGN-1);
+ size = (size + TALLOC_ALIGN) & (~(TALLOC_ALIGN-1));...