distributed: Fix very minor memory leak

This commit is contained in:
rdb 2024-09-19 14:20:35 +02:00
parent d7ede81aa3
commit e70d0b47fc
1 changed files with 1 additions and 0 deletions

View File

@ -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