Unverified Kaydet (Commit) 64421d92 authored tarafından Miss Islington (bot)'s avatar Miss Islington (bot) Kaydeden (comit) GitHub

bpo-33231: Fix potential leak in normalizestring() (GH-6386)

(cherry picked from commit 0c1c4563)
Co-authored-by: 's avatarINADA Naoki <methane@users.noreply.github.com>
üst 28c17909
...@@ -78,8 +78,6 @@ PyObject *normalizestring(const char *string) ...@@ -78,8 +78,6 @@ PyObject *normalizestring(const char *string)
} }
p[i] = '\0'; p[i] = '\0';
v = PyUnicode_FromString(p); v = PyUnicode_FromString(p);
if (v == NULL)
return NULL;
PyMem_Free(p); PyMem_Free(p);
return v; return v;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment