bpo-41995: Fix null ptr deref in tracemalloc_copy_trace() (GH-22660)


Fix a null pointer dereference in tracemalloc_copy_trace()
of _tracemalloc.
(cherry picked from commit 66c28f50c76e4f23af7146e0e580457c5fd6bde7)

Co-authored-by: Yunlongs <lylgood@foxmail.com>
1 file changed