Closed loggerhead closed 8 years ago
I think the logic of tgc_free should changed to:
tgc_free
void tgc_free(tgc_t *gc, void *ptr) { tgc_ptr_t *p = tgc_get_ptr(gc, ptr); if (p) { if (p->dtor) { p->dtor(ptr); } free(ptr); tgc_rem(gc, ptr); } }
Yes I think you're correct, good catch.
fixed in 88c13cb3b06f461dc5087d4e532d42dc252b3756
I think the logic of
tgc_free
should changed to: