changeset 24651 | 67241ee427cf |
parent 24624 | 6f0e6fa9fdd7 |
child 25015 | b3a68fb8b859 |
--- a/mercurial/dirs.c Mon Apr 06 18:31:59 2015 -0700 +++ b/mercurial/dirs.c Tue Apr 07 20:43:04 2015 -0700 @@ -94,10 +94,8 @@ goto bail; /* Clear the key out since we've already exposed it to Python - and can't mutate it further. key's refcount is currently 2 so - we can't just use Py_CLEAR. */ - Py_DECREF(key); - key = NULL; + and can't mutate it further. */ + Py_CLEAR(key); } ret = 0;