Differences From Artifact [c5e3bf3b39]:
- File src/map.c — part of check-in [ceb7a22af1] at 2012-04-25 09:22:42 on branch trunk — ISO C forbids empty initializer braces. (user: js, size: 7914) [annotate] [blame] [check-ins using]
To Artifact [30449aad8d]:
- File src/map.c — part of check-in [d416cefb3b] at 2012-09-30 00:25:00 on branch trunk — Fix a memory leak in map. (user: js, size: 7937) [annotate] [blame] [check-ins using]
︙ | |||
65 66 67 68 69 70 71 72 73 74 75 76 77 78 | 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | + | CFWMap *map = ptr; uint32_t i; for (i = 0; i < map->size; i++) { if (map->data[i] != NULL && map->data[i] != &deleted) { cfw_unref(map->data[i]->key); cfw_unref(map->data[i]->obj); free(map->data[i]); } } if (map->data != NULL) free(map->data); } |
︙ |