Close the library before the error handler changes the block.

This commit is contained in:
Juan Jose Garcia Ripoll 2008-05-26 21:42:04 +02:00
parent e2e6563b46
commit b50e36e017

View file

@ -434,8 +434,8 @@ si_load_foreign_module(cl_object filename)
output = ecl_library_open(filename, 0);
if (output->cblock.handle == NULL)
{
output = ecl_library_error(output);
ecl_library_close(output);
output = ecl_library_error(output);
}
OUTPUT:
#ifdef ECL_THREADS