diff --git a/examples/COUPLE/plugin/liblammpsplugin.c b/examples/COUPLE/plugin/liblammpsplugin.c index 996a27524f..0b7eda7537 100644 --- a/examples/COUPLE/plugin/liblammpsplugin.c +++ b/examples/COUPLE/plugin/liblammpsplugin.c @@ -199,7 +199,7 @@ int liblammpsplugin_release(liblammpsplugin_t *lmp) if (lmp->handle == NULL) return 2; #ifdef _WIN32 - FreeLibrary((HINSTANCE) handle); + FreeLibrary((HINSTANCE) lmp->handle); #else dlclose(lmp->handle); #endif