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:
parent
7703b99b53
commit
34e0da0d4d
11 changed files with 112 additions and 94 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue