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);