Project

General

Profile

« Previous | Next » 

Revision 7c46aa5e

Added by peterzhu2118 (Peter Zhu) over 1 year ago

[Bug #20577] Fix freeing symbols when RUBY_FREE_AT_EXIT

Dynamic symbols point to a fstring. When we free the symbol, we hash the
fstring to remove it from the table. However, the fstring could have
already been freed, which can cause a crash.

This commit changes it to remove the reference to the fstring before
freeing the symbol so we can avoid this crash.