summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorAmmar Askar <ammar@ammaraskar.com>2019-11-06 15:40:06 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2019-11-06 15:40:06 (GMT)
commit484edbf9bf1a9e6bae0fcb10a0c165b89ea79295 (patch)
tree01d000aca3b7e917811144a7857a7917b27ff27b /Python/pythonrun.c
parent91f4b9282fe7cdc51c6612002d033da654f422c1 (diff)
downloadcpython-484edbf9bf1a9e6bae0fcb10a0c165b89ea79295.zip
cpython-484edbf9bf1a9e6bae0fcb10a0c165b89ea79295.tar.gz
cpython-484edbf9bf1a9e6bae0fcb10a0c165b89ea79295.tar.bz2
bpo-16575: Fix refleak on passing unions in ctypes (GH-17064)
The master and 3.8 versions of the previous change work as expected because we perform the lookup for the `from_param` after the union check. However, in 3.7, this lookup happens before the union validation and so we must decrease the reference for `cnv` before returning.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions