summaryrefslogtreecommitdiffstats
path: root/Python/importdl.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-03-28 20:17:52 (GMT)
committerGuido van Rossum <guido@python.org>2002-03-28 20:17:52 (GMT)
commitcfbf1a33c17f5ea499a0419d94162d80c52ec782 (patch)
tree4e127ab1cec9efff500184cd4a533f38cf7d4af1 /Python/importdl.h
parent47cdf6fb6fbc501176329c560584441b2becc234 (diff)
downloadcpython-cfbf1a33c17f5ea499a0419d94162d80c52ec782.zip
cpython-cfbf1a33c17f5ea499a0419d94162d80c52ec782.tar.gz
cpython-cfbf1a33c17f5ea499a0419d94162d80c52ec782.tar.bz2
Fix an issue that was reported in but unrelated to the main problem of
SF bug 535905 (Evil Trashcan and GC interaction). The SETLOCAL() macro should not DECREF the local variable in-place and then store the new value; it should copy the old value to a temporary value, then store the new value, and then DECREF the temporary value. This is because it is possible that during the DECREF the frame is accessed by other code (e.g. a __del__ method or gc.collect()) and the variable would be pointing to already-freed memory. BUGFIX CANDIDATE!
Diffstat (limited to 'Python/importdl.h')
0 files changed, 0 insertions, 0 deletions