Fix a memory leak in map.

This commit is contained in:
Jonathan Schleifer 2012-09-30 02:25:00 +02:00
parent 7ad3af0b3d
commit f9171cf8a1

View file

@ -69,6 +69,7 @@ dtor(void *ptr)
if (map->data[i] != NULL && map->data[i] != &deleted) { if (map->data[i] != NULL && map->data[i] != &deleted) {
cfw_unref(map->data[i]->key); cfw_unref(map->data[i]->key);
cfw_unref(map->data[i]->obj); cfw_unref(map->data[i]->obj);
free(map->data[i]);
} }
} }