summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2000-08-16 19:43:17 +0000
committerBarry Warsaw <barry@python.org>2000-08-16 19:43:17 +0000
commitc480f7a337ef91e7c16990d4b727bc2a4084f1f8 (patch)
tree053a0c047df6db54218eb8fe8a229e14834329db /Python/sysmodule.c
parentccaddabc2d0439fa1b075f49b388286c8f6f61bc (diff)
downloadcpython-c480f7a337ef91e7c16990d4b727bc2a4084f1f8.tar.gz
SyntaxError__str__(): Fix two memory problems discovered by Insure.
First, the allocated buffer was never freed after using it to create the PyString object. Second, it was possible that have_filename would be false (meaning that filename was not a PyString object), but that the code would still try to PyString_GET_SIZE() it.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions