diff options
-rw-r--r-- | src/lanes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lanes.c b/src/lanes.c index 262a497..360990a 100644 --- a/src/lanes.c +++ b/src/lanes.c | |||
@@ -823,7 +823,7 @@ static void linda_id( lua_State *L, char const * const which) | |||
823 | /* Clean associated structures in the keeper state. | 823 | /* Clean associated structures in the keeper state. |
824 | */ | 824 | */ |
825 | K= keeper_acquire(s); | 825 | K= keeper_acquire(s); |
826 | if( K) // can be NULL if this happens during main state shutdown (lanes is GC'ed -> no keepers -> no need to cleanup) | 826 | if( K && K->L) // can be NULL if this happens during main state shutdown (lanes is GC'ed -> no keepers -> no need to cleanup) |
827 | { | 827 | { |
828 | keeper_call( K->L, "clear", L, s, 0 ); | 828 | keeper_call( K->L, "clear", L, s, 0 ); |
829 | keeper_release(K); | 829 | keeper_release(K); |