diff options
author | Philip Jenvey <pjenvey@underboss.org> | 2010-04-14 17:03:38 (GMT) |
---|---|---|
committer | Philip Jenvey <pjenvey@underboss.org> | 2010-04-14 17:03:38 (GMT) |
commit | a1bda34cba2de56bd902943aae909e96d3a14b2b (patch) | |
tree | 4b26d35bbe233f6ddd49f8fd89e47ccbf0649845 | |
parent | 7c3e5773954009d65520eb063621cf7724da88e3 (diff) | |
download | cpython-a1bda34cba2de56bd902943aae909e96d3a14b2b.zip cpython-a1bda34cba2de56bd902943aae909e96d3a14b2b.tar.gz cpython-a1bda34cba2de56bd902943aae909e96d3a14b2b.tar.bz2 |
strings from _Py_char2wchar need PyMem_Free
-rw-r--r-- | Modules/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/main.c b/Modules/main.c index 8313e3d..fa2002f 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -439,7 +439,7 @@ Py_Main(int argc, wchar_t **argv) for (p = strtok(buf, ","); p != NULL; p = strtok(NULL, ",")) { if ((warning = _Py_char2wchar(p)) != NULL) { PySys_AddWarnOption(warning); - free(warning); + PyMem_Free(warning); } } setlocale(LC_ALL, oldloc); |