do not free MemoryRegion in memory_unmap() because it will be unref later in memory_region_unref(). this fixes issue #202

This commit is contained in:
Nguyen Anh Quynh
2015-10-28 01:26:59 +08:00
parent 3a36e327ab
commit b66a323b19
3 changed files with 4 additions and 3 deletions

View File

@ -697,7 +697,7 @@ void object_ref(Object *obj)
if (!obj) {
return;
}
atomic_inc(&obj->ref);
atomic_inc(&obj->ref);
}
void object_unref(struct uc_struct *uc, Object *obj)