mercurial/osutil.c
changeset 26982 fa6685ea7ad8
parent 24462 40b05303ac32
child 26983 f9f2f29ce023
--- 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);