From 038d3977e2c57f87a4afc44d0d0610ecae20e80d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 23 Mar 2001 21:37:30 +0000 Subject: a much simpler talloc() implementation. This version has the following advantages: - memory is trackable by insure - a very simple talloc_realloc() is possible (I've added it) It is slower than the previous talloc code, but I don't think that is going to be a problem. If it is a problem then there are some ways we can make it faster but I'd like to leave those until we have tested this a bit and can see what performance problems might show up in profiling (This used to be commit 1ab63cf3a6f62c3e4ca19a549bde78dad0eb4340) --- source3/include/talloc.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/include') diff --git a/source3/include/talloc.h b/source3/include/talloc.h index 32b0f28ae6..a4df28c8b0 100644 --- a/source3/include/talloc.h +++ b/source3/include/talloc.h @@ -29,9 +29,8 @@ struct talloc_chunk { struct talloc_chunk *next; + size_t size; void *ptr; - size_t alloc_size; - size_t total_size; }; typedef struct { -- cgit