diff options
author | Mike Pall <mike> | 2012-02-01 18:21:12 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2012-02-01 18:21:12 +0100 |
commit | d72d758a112cd4a83402f4debfe5173ba170c6c2 (patch) | |
tree | 0090fcc844e0232fc51178c380e71184be0d7125 /src | |
parent | d0b1646c808a7994b6a035e7b02ab9f41febc1c3 (diff) | |
download | luajit-d72d758a112cd4a83402f4debfe5173ba170c6c2.tar.gz luajit-d72d758a112cd4a83402f4debfe5173ba170c6c2.tar.bz2 luajit-d72d758a112cd4a83402f4debfe5173ba170c6c2.zip |
FFI: Fix library unloading on POSIX systems.
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_clib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_clib.c b/src/lj_clib.c index ec889e51..a716254d 100644 --- a/src/lj_clib.c +++ b/src/lj_clib.c | |||
@@ -114,7 +114,7 @@ static void *clib_loadlib(lua_State *L, const char *name, int global) | |||
114 | 114 | ||
115 | static void clib_unloadlib(CLibrary *cl) | 115 | static void clib_unloadlib(CLibrary *cl) |
116 | { | 116 | { |
117 | if (!cl->handle && cl->handle != CLIB_DEFHANDLE) | 117 | if (cl->handle && cl->handle != CLIB_DEFHANDLE) |
118 | dlclose(cl->handle); | 118 | dlclose(cl->handle); |
119 | } | 119 | } |
120 | 120 | ||