changeset 26982:fa6685ea7ad8

osutil: don't leak on statfiles error Found using the power of the mighty eyeball.
author Bryan O'Sullivan <bos@serpentine.com>
date Tue, 17 Nov 2015 13:43:09 -0800
parents cda2e980281e
children f9f2f29ce023
files mercurial/osutil.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);