Unverified Kaydet (Commit) 0c1c4563 authored tarafından INADA Naoki's avatar INADA Naoki Kaydeden (comit) GitHub

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

üst 01b731fc
......@@ -78,8 +78,6 @@ PyObject *normalizestring(const char *string)
}
p[i] = '\0';
v = PyUnicode_FromString(p);
if (v == NULL)
return NULL;
PyMem_Free(p);
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