summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);