From b42ca205ee857db805045538d13a470b48d87340 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 8 Nov 2018 16:56:46 -0500 Subject: [PATCH] Don't be so pedantic about cleaning up in the main function --- src/main.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main.c b/src/main.c index 819367e4f..ce1581fc5 100644 --- a/src/main.c +++ b/src/main.c @@ -54,7 +54,6 @@ main(int argc, char** argv) return 1; } if (PyObject_SetAttrString(sys, "dont_write_bytecode", Py_True)) { - Py_DECREF(sys); return 1; } @@ -62,13 +61,10 @@ main(int argc, char** argv) // importing modules, which saves on filesystem I/O time PyObject *implementation = PyObject_GetAttrString(sys, "implementation"); if (implementation == NULL) { - Py_DECREF(sys); return 1; } if (PyObject_SetAttrString(implementation, "cache_tag", Py_None)) { - Py_DECREF(implementation); - Py_DECREF(sys); return 1; }