freelater.c (241B)
1 /* Written by Kris Maglione <maglione.k at Gmail> */ 2 /* Public domain */ 3 #include "util.h" 4 5 void* 6 freelater(void *p) { 7 static char* obj[16]; 8 static long nobj; 9 int id; 10 11 id = nobj++ % nelem(obj); 12 free(obj[id]); 13 obj[id] = p; 14 return p; 15 }