diff options
| author | Jeremy Kloth <jeremy.kloth@gmail.com> | 2022-03-22 06:53:51 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-22 13:53:51 +0100 |
| commit | 88872a29f19092d2fde27365af230abd6d301941 (patch) | |
| tree | c3b3f338395d4f3015cf1e9c37689a30019126b1 /Tools/scripts | |
| parent | 7d810b6a4eab6eba689acc5bb05f85515478d690 (diff) | |
| download | cpython-git-88872a29f19092d2fde27365af230abd6d301941.tar.gz | |
bpo-47084: Clear Unicode cached representations on finalization (GH-32032)
Diffstat (limited to 'Tools/scripts')
| -rw-r--r-- | Tools/scripts/deepfreeze.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/scripts/deepfreeze.py b/Tools/scripts/deepfreeze.py index d208258dbc..1831c15784 100644 --- a/Tools/scripts/deepfreeze.py +++ b/Tools/scripts/deepfreeze.py @@ -185,6 +185,7 @@ class Printer: else: self.write("PyCompactUnicodeObject _compact;") self.write(f"{datatype} _data[{len(s)+1}];") + self.deallocs.append(f"_PyStaticUnicode_Dealloc((PyObject *)&{name});") with self.block(f"{name} =", ";"): if ascii: with self.block("._ascii =", ","): |
