summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2010-04-14 17:03:38 (GMT)
committerPhilip Jenvey <pjenvey@underboss.org>2010-04-14 17:03:38 (GMT)
commita1bda34cba2de56bd902943aae909e96d3a14b2b (patch)
tree4b26d35bbe233f6ddd49f8fd89e47ccbf0649845
parent7c3e5773954009d65520eb063621cf7724da88e3 (diff)
downloadcpython-a1bda34cba2de56bd902943aae909e96d3a14b2b.zip
cpython-a1bda34cba2de56bd902943aae909e96d3a14b2b.tar.gz
cpython-a1bda34cba2de56bd902943aae909e96d3a14b2b.tar.bz2
strings from _Py_char2wchar need PyMem_Free
-rw-r--r--Modules/main.c2
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);