diff --git a/src/win/win_dynld.c b/src/win/win_dynld.c index 6043e36d6..e258ebe19 100644 --- a/src/win/win_dynld.c +++ b/src/win/win_dynld.c @@ -65,7 +65,7 @@ dynld_module(const char *name, dllimp_t *table) if (func == NULL) { dynld_log("DynLd(\"%s\"): function '%s' not found!\n", name, imp->name); - CloseHandle(h); + FreeLibrary(h); return(NULL); }