esneider
Joined 13 years ago
Karma
197
Submissions
7
Member since
Dec 8
Joined 13 years ago
Fixed! Thanks.
void *p;
free(p);
free(p);
Don't get me wrong, I get where you are going. But C philosophy is that libraries shouldn't do expensive checking to detect programmers' errors.Here is a simple, 200-line version of just the hierarchical allocator: https://github.com/esneider/talloc
For anyone interested in this kind of things, you should go read that book. It actually is a delight.