drgn/libdrgn/python
Omar Sandoval 91b26e2338 libdrgn: python: add _cleanup_pydecref_ scope guard
We have tons of cleanup code just for calling Py_DECREF(); this is a
perfect use case for a scope guard. Add it and use it everywhere that it
is straightforward to.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
2023-08-02 12:28:42 -07:00
..
drgnpy.h libdrgn: python: add _cleanup_pydecref_ scope guard 2023-08-02 12:28:42 -07:00
error.c libdrgn: python: add _cleanup_pydecref_ scope guard 2023-08-02 12:28:42 -07:00
helpers.c libdrgn: python: add _cleanup_pydecref_ scope guard 2023-08-02 12:28:42 -07:00
language.c Relicense drgn from GPLv3+ to LGPLv2.1+ 2022-11-01 17:05:16 -07:00
main.c libdrgn: python: add _cleanup_pydecref_ scope guard 2023-08-02 12:28:42 -07:00
object.c libdrgn: python: add _cleanup_pydecref_ scope guard 2023-08-02 12:28:42 -07:00
platform.c libdrgn: python: add _cleanup_pydecref_ scope guard 2023-08-02 12:28:42 -07:00
program.c libdrgn: python: add _cleanup_pydecref_ scope guard 2023-08-02 12:28:42 -07:00
stack_trace.c libdrgn: python: add _cleanup_pydecref_ scope guard 2023-08-02 12:28:42 -07:00
symbol.c libdrgn: python: add _cleanup_pydecref_ scope guard 2023-08-02 12:28:42 -07:00
test.c Relicense drgn from GPLv3+ to LGPLv2.1+ 2022-11-01 17:05:16 -07:00
thread.c libdrgn: python: add _cleanup_pydecref_ scope guard 2023-08-02 12:28:42 -07:00
type.c libdrgn: python: add _cleanup_pydecref_ scope guard 2023-08-02 12:28:42 -07:00
util.c libdrgn: python: add _cleanup_pydecref_ scope guard 2023-08-02 12:28:42 -07:00