From e70d0b47fce54c177628595134c9731afa5cf281 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 19 Sep 2024 14:20:35 +0200 Subject: [PATCH] distributed: Fix very minor memory leak --- direct/src/distributed/cConnectionRepository.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/direct/src/distributed/cConnectionRepository.cxx b/direct/src/distributed/cConnectionRepository.cxx index f04f280936..1b6f06b6f3 100644 --- a/direct/src/distributed/cConnectionRepository.cxx +++ b/direct/src/distributed/cConnectionRepository.cxx @@ -717,6 +717,7 @@ handle_update_field() { nassertr(neverDisable != nullptr, false); unsigned int cNeverDisable = PyLong_AsLong(neverDisable); + Py_DECREF(neverDisable); if (!cNeverDisable) { // in quiet zone and distobj is disable-able drop update on the // floor