Browse files

Close handles opened with dlopen()

  • Loading branch information...
1 parent d7a69d1 commit 699b03ad39468a1ef8129c333f78d2ee0c338277 @dbussink dbussink committed Feb 9, 2014
Showing with 2 additions and 0 deletions.
  1. +1 −0 vm/builtin/system.cpp
  2. +1 −0 vm/environment.cpp
View
1 vm/builtin/system.cpp
@@ -681,6 +681,7 @@ namespace rubinius {
}
}
+ dlclose(handle);
return Tuple::from(state, 1, cTrue);
}
View
1 vm/environment.cpp
@@ -744,6 +744,7 @@ namespace rubinius {
std::cerr << "Tool '" << path << "' reported failure to init.\n";
}
}
+ dlclose(handle);
}
std::string Environment::executable_name() {

0 comments on commit 699b03a

Please sign in to comment.