LK_STATE_SIZE
if (state == NULL || state_idx == LK_STATE_SIZE) {
state_idx = LK_STATE_SIZE;
leak_ndx_t lks_stack[LK_STATE_SIZE];