Overview
Comment: | Fix a bug in refpool. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
d7b09f1d6381314d2f5020bc31991f79 |
User & Date: | js on 2012-09-30 02:57:00 |
Other Links: | manifest | tags |
Context
2012-09-30
| ||
03:20 | Work around malloc(0) returning NULL. check-in: 384257c4cc user: js tags: trunk | |
02:57 | Fix a bug in refpool. check-in: d7b09f1d63 user: js tags: trunk | |
02:56 | Fix a leak in map. check-in: 01129bb203 user: js tags: trunk | |
Changes
Modified src/refpool.c from [e46baebb14] to [dae880981d].
︙ | ︙ | |||
72 73 74 75 76 77 78 79 80 81 82 83 84 85 | for (i = 0; i < pool->size; i++) cfw_unref(pool->data[i]); if (pool->data != NULL) free(pool->data); top = pool->prev; } bool cfw_refpool_add(void *ptr) { void **ndata; | > > > | 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | for (i = 0; i < pool->size; i++) cfw_unref(pool->data[i]); if (pool->data != NULL) free(pool->data); top = pool->prev; if (top != NULL) top->next = NULL; } bool cfw_refpool_add(void *ptr) { void **ndata; |
︙ | ︙ |