fix use-after-free crash in RT #97625
Merge pull request #28 from bigio/master

fix use-after-free crash in RT #97625