diff options
author | INADA Naoki <methane@users.noreply.github.com> | 2018-04-06 06:51:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-06 06:51:24 (GMT) |
commit | 0c1c4563a65ac451021d927058e4f25013934eb2 (patch) | |
tree | 144630102850a416a8572266e1466bf875f186d1 /Python/codecs.c | |
parent | 01b731fc2b04744a11e32f93aba8bfb9ddb3dd29 (diff) | |
download | cpython-0c1c4563a65ac451021d927058e4f25013934eb2.zip cpython-0c1c4563a65ac451021d927058e4f25013934eb2.tar.gz cpython-0c1c4563a65ac451021d927058e4f25013934eb2.tar.bz2 |
bpo-33231: Fix potential leak in normalizestring() (GH-6386)
Diffstat (limited to 'Python/codecs.c')
-rw-r--r-- | Python/codecs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/codecs.c b/Python/codecs.c index 223ccca..eb3cd35 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -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; } |