projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
704d8b1
)
Fix uninitialized variable access, release memory.
author
Martin v. Löwis
<martin@v.loewis.de>
Mon, 2 Jun 2008 12:33:47 +0000
(12:33 +0000)
committer
Martin v. Löwis
<martin@v.loewis.de>
Mon, 2 Jun 2008 12:33:47 +0000
(12:33 +0000)
Python/pythonrun.c
patch
|
blob
|
history
diff --git
a/Python/pythonrun.c
b/Python/pythonrun.c
index f2f14edb99eb8ff46e84c91e303054fb5b452799..7fe4ccea551d826268942e3078552f39de1d1c5c 100644
(file)
--- a/
Python/pythonrun.c
+++ b/
Python/pythonrun.c
@@
-732,6
+732,7
@@
initstdio(void)
}
encoding = Py_GETENV("PYTHONIOENCODING");
+ errors = NULL;
if (encoding) {
encoding = strdup(encoding);
errors = strchr(encoding, ':');
@@
-825,6
+826,8
@@
initstdio(void)
status = -1;
}
+ if (encoding)
+ free(encoding);
Py_XDECREF(bimod);
Py_XDECREF(iomod);
return status;