This reverts commit fec01ee3f5244bb9a04bc4310fc892c56c5b6bab. According to asan, this patch introduces a heap use after free.
This reverts commit fec01ee3f5244bb9a04bc4310fc892c56c5b6bab. According to asan, this patch introduces a heap use after free.