void kp_free_all_gcobject(ktap_state *ks) { kp_free_gclist(ks, G(ks)->allgc); G(ks)->allgc = NULL; }
void kp_exitthread(ktap_state *ks) { /* free local allocation objects, like annotate strings */ kp_free_gclist(ks, ks->gclist); }