Skip to content

Commit 8b55ef3

Browse files
authored
Update dlutils.hpp
1 parent 5f3d6da commit 8b55ef3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/dlutils/dlutils.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ class DlLibBase {
188188
explicit DlLibBase(std::string_view lib) : libName_(lib) {}
189189

190190
/// @brief Destructor (default)
191-
~DlLibBase() = default;
191+
~DlLibBase() {
192+
dlclose(libptr_);
193+
}
192194

193195
/// @brief Open the dynamic library
194196
///

0 commit comments

Comments
 (0)