]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
PyModule: Fix memory leak in load_subclass_of
authorNitzan Mordechai <nmordech@redhat.com>
Sun, 9 Feb 2025 06:46:38 +0000 (06:46 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Wed, 7 May 2025 11:19:10 +0000 (11:19 +0000)
commitc1614fe7b89374095c4b434946d221ecfe512fb9
treed99b612a7c1c0e2800f195d6fb9281af6851f575
parent9238442fda536976cb9292893f82503da7c5de16
PyModule: Fix memory leak in load_subclass_of

Fix missing Py_DECREF on mgr_module_type when the plugin module import fails.
This prevents a memory leak that occurs during subclass loading.

Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
src/mgr/PyModule.cc