Skip to content

Commit

Permalink
Merge pull request #82 from GPUOpen-LibrariesAndSDKs/bug/free-dll
Browse files Browse the repository at this point in the history
close of hiprtc DLL was missing
  • Loading branch information
RichardGe authored Apr 2, 2024
2 parents 4c11f4f + d40b119 commit 659e192
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions contrib/hipew/src/hipew.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,13 +557,21 @@ static DynamicLibrary dynamic_library_open_find(const char **paths) {
return NULL;
}

/* Implementation function. */
// Implementation function.
static void hipewHipExit(void) {
if (hip_lib != NULL) {
/* Ignore errors. */
// Ignore errors.
dynamic_library_close(hip_lib);
hip_lib = NULL;
}

if (hiprtc_lib != NULL) {
// Ignore errors.
dynamic_library_close(hiprtc_lib);
hiprtc_lib = NULL;
}

return;
}

#ifdef _WIN32
Expand Down

0 comments on commit 659e192

Please sign in to comment.