Skip to content

Commit

Permalink
fix PyMem_Free to PyMem_RawFree
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed May 20, 2023
1 parent ea5965a commit e6be2a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/perf_trampoline.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ perf_map_write_entry(void *state, const void *code_addr,
}
snprintf(perf_map_entry, perf_map_entry_size, "py::%s:%s", entry, filename);
PyUnstable_WritePerfMapEntry(code_addr, code_size, perf_map_entry);
PyMem_Free(perf_map_entry);
PyMem_RawFree(perf_map_entry);
}

_PyPerf_Callbacks _Py_perfmap_callbacks = {
Expand Down

0 comments on commit e6be2a7

Please sign in to comment.