Mercurial > hg
comparison mercurial/dirs.c @ 23960:bca4b6f126f2 stable
dirs: fix leak of iterator in dirs_fromiter
Spotted with cpychecker.
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 27 Jan 2015 10:10:04 -0500 |
parents | e250b8300e6e |
children | 1a9efc312700 |
comparison
equal
deleted
inserted
replaced
23959:c8e7fa41bfc5 | 23960:bca4b6f126f2 |
---|---|
173 break; | 173 break; |
174 Py_CLEAR(item); | 174 Py_CLEAR(item); |
175 } | 175 } |
176 | 176 |
177 ret = PyErr_Occurred() ? -1 : 0; | 177 ret = PyErr_Occurred() ? -1 : 0; |
178 Py_DECREF(iter); | |
178 Py_XDECREF(item); | 179 Py_XDECREF(item); |
179 return ret; | 180 return ret; |
180 } | 181 } |
181 | 182 |
182 /* | 183 /* |