We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb46d67 commit 05f7c50Copy full SHA for 05f7c50
Modules/main.c
@@ -216,6 +216,7 @@ Py_Main(argc, argv)
216
217
if (command) {
218
sts = PyRun_SimpleString(command) != 0;
219
+ free(command);
220
}
221
else {
222
if (filename == NULL && stdin_is_interactive) {
@@ -240,8 +241,8 @@ Py_Main(argc, argv)
240
241
(filename != NULL || command != NULL))
242
sts = PyRun_AnyFile(stdin, "<stdin>") != 0;
243
- Py_Exit(sts);
244
- return 0; /* Make gcc -Wall happy */
+ Py_Cleanup();
245
+ return sts;
246
247
248
0 commit comments