** free all CallInfo structures not in use by a thread */
| 86 | ** free all CallInfo structures not in use by a thread |
| 87 | */ |
| 88 | static void freeCI (lua_State *L) { |
| 89 | CallInfo *ci = L->ci; |
| 90 | CallInfo *next = ci->next; |
| 91 | ci->next = NULL; |
| 92 | while ((ci = next) != NULL) { |
| 93 | next = ci->next; |
| 94 | luaM_free(L, ci); |
| 95 | L->nci--; |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | |
| 100 | /* |