# HG changeset patch # User Bryan O'Sullivan # Date 1447796589 28800 # Node ID fa6685ea7ad8ba96080b699fc7cd27c5d446ca20 # Parent cda2e980281ef282163f51236e7b46d07338f150 osutil: don't leak on statfiles error Found using the power of the mighty eyeball. diff -r cda2e980281e -r fa6685ea7ad8 mercurial/osutil.c --- a/mercurial/osutil.c Thu Nov 12 12:44:15 2015 +0100 +++ b/mercurial/osutil.c Tue Nov 17 13:43:09 2015 -0800 @@ -615,7 +615,7 @@ pypath = PySequence_GetItem(names, i); if (!pypath) - return NULL; + goto bail; path = PyString_AsString(pypath); if (path == NULL) { Py_DECREF(pypath);