diff options
author | Barry Warsaw <barry@python.org> | 2000-08-16 19:43:17 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2000-08-16 19:43:17 (GMT) |
commit | 77c9f50422833829fe1c001831f778e4fcd512df (patch) | |
tree | 10c78a36978caa501009d946da0a184f557dab0c /Lib/socket.py | |
parent | 9f6e6c63ef84a5171b0c8f2e665d853c5cd99905 (diff) | |
download | cpython-77c9f50422833829fe1c001831f778e4fcd512df.zip cpython-77c9f50422833829fe1c001831f778e4fcd512df.tar.gz cpython-77c9f50422833829fe1c001831f778e4fcd512df.tar.bz2 |
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 'Lib/socket.py')
0 files changed, 0 insertions, 0 deletions