##// END OF EJS Templates
dirs._addpath: reinstate use of Py_CLEAR...
Siddharth Agarwal -
r24651:67241ee4 default
parent child Browse files
Show More
@@ -94,10 +94,8 b' static int _addpath(PyObject *dirs, PyOb'
94 goto bail;
94 goto bail;
95
95
96 /* Clear the key out since we've already exposed it to Python
96 /* Clear the key out since we've already exposed it to Python
97 and can't mutate it further. key's refcount is currently 2 so
97 and can't mutate it further. */
98 we can't just use Py_CLEAR. */
98 Py_CLEAR(key);
99 Py_DECREF(key);
100 key = NULL;
101 }
99 }
102 ret = 0;
100 ret = 0;
103
101
General Comments 0
You need to be logged in to leave comments. Login now