Browse Source

distributed: Fix very minor memory leak

rdb 1 year ago
parent
commit
e70d0b47fc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/distributed/cConnectionRepository.cxx

+ 1 - 0
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