summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 3026b66..51a85e0 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -469,7 +469,8 @@ _PySys_Init(void)
else
value = "little";
PyDict_SetItemString(sysdict, "byteorder",
- PyString_FromString(value));
+ v = PyString_FromString(value));
+ Py_XDECREF(v);
}
#ifdef MS_COREDLL
PyDict_SetItemString(sysdict, "dllhandle",