]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
FFI: Fix library unloading on POSIX systems.
authorMike Pall <mike>
Wed, 1 Feb 2012 17:21:12 +0000 (18:21 +0100)
committerMike Pall <mike>
Wed, 1 Feb 2012 17:21:12 +0000 (18:21 +0100)
src/lj_clib.c

index ec889e51c76d7f03c7255bbfa05b71f29c0ded4a..a716254dae2bcedf056bbf1b7a0fcc57b2db75b5 100644 (file)
@@ -114,7 +114,7 @@ static void *clib_loadlib(lua_State *L, const char *name, int global)
 
 static void clib_unloadlib(CLibrary *cl)
 {
-  if (!cl->handle && cl->handle != CLIB_DEFHANDLE)
+  if (cl->handle && cl->handle != CLIB_DEFHANDLE)
     dlclose(cl->handle);
 }