** free all CallInfo structures not in use by a thread */
| 120 | ** free all CallInfo structures not in use by a thread |
| 121 | */ |
| 122 | void luaE_freeCI (lua_State *L) { |
| 123 | CallInfo *ci = L->ci; |
| 124 | CallInfo *next = ci->next; |
| 125 | ci->next = NULL; |
| 126 | while ((ci = next) != NULL) { |
| 127 | next = ci->next; |
| 128 | luaM_free(L, ci); |
| 129 | L->nci--; |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | |
| 134 | /* |
no outgoing calls
no test coverage detected