Skip to content

Commit

Permalink
Closing mmd_lib in destructor that is not opened globally
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Zhao committed May 17, 2023
1 parent 21696a5 commit ebfa28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acl_hal_mmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ static acl_mmd_dispatch_t *get_msim_mmd_layer() {
return nullptr;
}
auto *sym = my_dlsym(mmd_lib, sym_name, &error_msg);
my_dlclose(mmd_lib);
mmd_libs.push_back(std::make_unique<my_dl_wrapper>(mmd_lib));
if (!sym) {
std::cout << "Error: Symbol " << sym_name
<< " not found in simulation MMD library ";
Expand Down

0 comments on commit ebfa28c

Please sign in to comment.