From f79dbe249e4864c81081b7ae40fd4e12a3c42b72 Mon Sep 17 00:00:00 2001
From: Mikhail Svechnikov <svechnikovmv@gmail.com>
Date: Tue, 4 Jul 2023 17:27:13 +0200
Subject: [PATCH] not touch borrowed ref

---
 PyCore/Embed/PyInterpreter.cpp | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/PyCore/Embed/PyInterpreter.cpp b/PyCore/Embed/PyInterpreter.cpp
index a8a977fc454..5442d66efb6 100644
--- a/PyCore/Embed/PyInterpreter.cpp
+++ b/PyCore/Embed/PyInterpreter.cpp
@@ -655,9 +655,6 @@ std::vector<std::string> PyInterpreter::BornAgain::listOfFunctions(const std::st
                 fn_names.push_back(func_name);
         }
     }
-
-    Py_DecRef(pDict);
-
     return fn_names;
 }
 
-- 
GitLab