commit | a1933287e44756e47b0721e8f67dd4a0f0d2a6ef | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@divmod.com> | Thu Jul 16 16:20:42 2009 -0400 |
committer | Jean-Paul Calderone <exarkun@divmod.com> | Thu Jul 16 16:20:42 2009 -0400 |
tree | 5767b4ac6628823b9df817f9cc8b794cd892f811 | |
parent | 1206daf37e18ccdf719b77d310a85c3d27961dc1 [diff] |
It is bad to put a function call inside a macro - it might be evaluated more than once
diff --git a/src/util.c b/src/util.c index b1faad5..2ce370d 100644 --- a/src/util.c +++ b/src/util.c
@@ -54,6 +54,7 @@ void flush_error_queue(void) { - Py_DECREF(error_queue_to_list()); + PyObject *list = error_queue_to_list(); + Py_DECREF(list); }