diff --git a/tests/shunloadtest.c b/tests/shunloadtest.c index 499b1be5d4..80f535134f 100644 --- a/tests/shunloadtest.c +++ b/tests/shunloadtest.c @@ -114,6 +114,7 @@ int main(int argc ATTRIBUTE_UNUSED, char **argv) } if (!(startup = dlsym(lib, "shunloadStart"))) { fprintf(stderr, "Cannot find shunloadStart %s\n", dlerror()); + dlclose(lib); return 1; }