aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-06-29 07:10:40 -0600
committerTom Tromey <tromey@adacore.com>2023-07-03 11:35:18 -0600
commit9dbbe5c948f5adcf7097339337db74d5548b63d0 (patch)
tree846fd10ca73ef1b2cc5796d9e07020217ec4026d /gas
parent087969169836f802a09b1cd0502d2f22d7a8f7dc (diff)
downloadfsf-binutils-gdb-9dbbe5c948f5adcf7097339337db74d5548b63d0.zip
fsf-binutils-gdb-9dbbe5c948f5adcf7097339337db74d5548b63d0.tar.gz
fsf-binutils-gdb-9dbbe5c948f5adcf7097339337db74d5548b63d0.tar.bz2
Fix two Python calls that don't check for errors
PyModule_AddObject steals a reference on success, but not on error, which is why we have gdb_pymodule_addobject. I found one spot still calling the former, which could in theory leak memory on failure. This patch fixes this. In the same function I found an unchecked call to PyDict_SetItemString. This patch fixes this as well. Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gas')
0 files changed, 0 insertions, 0 deletions