osutil: don't leak on statfiles error
authorBryan O'Sullivan <bos@serpentine.com>
Tue, 17 Nov 2015 13:43:09 -0800
changeset 26982 fa6685ea7ad8
parent 26981 cda2e980281e
child 26983 f9f2f29ce023
osutil: don't leak on statfiles error Found using the power of the mighty eyeball.
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);