clear allocated freeblocks array

svn: r12313
This commit is contained in:
Matthew Flatt 2008-11-05 21:51:11 +00:00
parent 6ccb6a0137
commit 2fc429a9d7

View File

@ -35,6 +35,7 @@ static VM *vm_create() {
#if !( defined(_WIN32) || defined(OSKIT) )
#define BLOCKFREE_CACHE_SIZE 96
vm->freeblocks = ofm_malloc(sizeof(FreeBlock) * BLOCKFREE_CACHE_SIZE);
memset(vm->freeblocks, 0, sizeof(FreeBlock) * BLOCKFREE_CACHE_SIZE);
#endif
return vm;
}