more memory leaks fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7921 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-12-04 01:16:57 +00:00
commit 34e0da0d4d
11 changed files with 112 additions and 94 deletions

View file

@ -115,11 +115,10 @@ DohObjMalloc(DohObjInfo *type, void *data) {
FreeList = (DohBase *) obj->data;
} else {
while (Pools->current == Pools->len) {
PoolSize *= 2;
CreatePool();
}
obj = Pools->ptr + Pools->current;
Pools->current++;
++Pools->current;
}
obj->type = type;
obj->data = data;