Diff of /src/c/ffi.d [dee250] .. [469c8a] Maximize Restore

  Switch to side-by-side view

--- a/src/c/ffi.d
+++ b/src/c/ffi.d
@@ -709,8 +709,9 @@
 # endif
 	output = ecl_library_open(filename, 0);
 	if (output->cblock.handle == NULL) {
+		cl_object aux = ecl_library_error(output);
 		ecl_library_close(output);
-		output = ecl_library_error(output);
+		output = aux;
 	}
 # ifdef ECL_THREADS
 	(void)0; /* MSVC complains about missing ';' before '}' */