We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5436289 commit d0b01f8Copy full SHA for d0b01f8
Python/remote_debug.h
@@ -154,7 +154,9 @@ static void
154
_Py_RemoteDebug_FreePageCache(proc_handle_t *handle)
155
{
156
for (int i = 0; i < MAX_PAGES; i++) {
157
- PyMem_RawFree(handle->pages[i].data);
+ if (handle->pages[i].data) {
158
+ PyMem_RawFree(handle->pages[i].data);
159
+ }
160
handle->pages[i].data = NULL;
161
handle->pages[i].valid = 0;
162
}
0 commit comments