From 2090904655caeb3cb1a47bd4fb68c132085b97e5 Mon Sep 17 00:00:00 2001 From: frmdstryr Date: Sat, 1 Feb 2025 14:44:47 -0500 Subject: [PATCH] Use PyUnicode_InternFromString of static strs in catom --- atom/src/catom.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/src/catom.cpp b/atom/src/catom.cpp index ab494b15..f56542a3 100644 --- a/atom/src/catom.cpp +++ b/atom/src/catom.cpp @@ -563,13 +563,13 @@ bool CAtom::Ready() { return false; } - atom_members = PyUnicode_FromString( "__atom_members__" ); + atom_members = PyUnicode_InternFromString( "__atom_members__" ); if( !atom_members ) { return false; } - atom_flags = PyUnicode_FromString( "--frozen" ); + atom_flags = PyUnicode_InternFromString( "--frozen" ); if( !atom_flags ) return false;