Skip to content

Commit

Permalink
Remote unwinder's put_unwind_info function needs to cleanup for FEATU…
Browse files Browse the repository at this point in the history
…RE_USE_SYSTEM_LIBUNWIND (dotnet#49444)

Fixes issue: dotnet#42561
  • Loading branch information
mikem8361 authored Mar 12, 2021
1 parent 7e49088 commit cb36239
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/coreclr/pal/src/exception/remote-unwind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1973,6 +1973,12 @@ find_proc_info(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pip, int nee
static void
put_unwind_info(unw_addr_space_t as, unw_proc_info_t *pip, void *arg)
{
#ifdef FEATURE_USE_SYSTEM_LIBUNWIND
if (pip->unwind_info != nullptr) {
free(pip->unwind_info);
pip->unwind_info = nullptr;
}
#endif // FEATURE_USE_SYSTEM_LIBUNWIND
}

static unw_accessors_t init_unwind_accessors()
Expand Down

0 comments on commit cb36239

Please sign in to comment.