[Python-checkins] r45998 - python/trunk/Modules/posixmodule.c

martin.v.loewis python-checkins at python.org
Mon May 15 07:51:37 CEST 2006


Author: martin.v.loewis
Date: Mon May 15 07:51:36 2006
New Revision: 45998

Modified:
   python/trunk/Modules/posixmodule.c
Log:
Fix memory leak.


Modified: python/trunk/Modules/posixmodule.c
==============================================================================
--- python/trunk/Modules/posixmodule.c	(original)
+++ python/trunk/Modules/posixmodule.c	Mon May 15 07:51:36 2006
@@ -1855,6 +1855,7 @@
 				free(wnamebuf);
 				return NULL;
 			}
+			free(wnamebuf);
 			return d;
 		}
 		/* Drop the argument parsing error as narrow strings


More information about the Python-checkins mailing list