summaryrefslogtreecommitdiff
path: root/Cython/Debugger
diff options
context:
space:
mode:
authorVolker-Weissmann <39418860+Volker-Weissmann@users.noreply.github.com>2020-04-03 19:10:44 +0200
committerGitHub <noreply@github.com>2020-04-03 19:10:44 +0200
commita6986a9ee7c4e51d55df70d95b19c86501580b21 (patch)
tree0058a3619cb6401a356d84e19a59b62ea0dabc3a /Cython/Debugger
parent3469f0c7fe69e47e80fc2c685b649b70cb2c1f8b (diff)
downloadcython-a6986a9ee7c4e51d55df70d95b19c86501580b21.tar.gz
Fixed gdb C call to free() that broke "cy exec". (GH-3487)
Diffstat (limited to 'Cython/Debugger')
-rw-r--r--Cython/Debugger/libpython.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Debugger/libpython.py b/Cython/Debugger/libpython.py
index 44273a1a1..de7c7ef58 100644
--- a/Cython/Debugger/libpython.py
+++ b/Cython/Debugger/libpython.py
@@ -2608,7 +2608,7 @@ class PythonCodeExecutor(object):
return pointer
def free(self, pointer):
- gdb.parse_and_eval("free((void *) %d)" % pointer)
+ gdb.parse_and_eval("(void) free((void *) %d)" % pointer)
def incref(self, pointer):
"Increment the reference count of a Python object in the inferior."