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 00e24b8 commit 3a728e5Copy full SHA for 3a728e5
1 file changed
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