From 94c19575b161a2ba4698446bdfd93af672c87871 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Mon, 6 Jun 2022 13:37:07 -0500 Subject: [PATCH] Fix when clib is not pointer type. --- src/core/corelib.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core/corelib.c b/src/core/corelib.c index 2983cedc..a74eaf6a 100644 --- a/src/core/corelib.c +++ b/src/core/corelib.c @@ -389,7 +389,6 @@ JANET_CORE_FN(janet_core_native_close, if (anative->closed) janet_panic("native object already closed"); anative->closed = 1; free_clib(anative->clib); - anative->clib = NULL; return janet_wrap_nil(); }