[Python-checkins] r52099 - python/branches/release24-maint/Modules/_bsddb.c

andrew.kuchling python-checkins at python.org
Tue Oct 3 16:07:54 CEST 2006


Author: andrew.kuchling
Date: Tue Oct  3 16:07:53 2006
New Revision: 52099

Modified:
   python/branches/release24-maint/Modules/_bsddb.c
Log:
[Backport rev. 47010 by neal.norwitz]

Fix memory leak reported by valgrind while running test_subprocess



Modified: python/branches/release24-maint/Modules/_bsddb.c
==============================================================================
--- python/branches/release24-maint/Modules/_bsddb.c	(original)
+++ python/branches/release24-maint/Modules/_bsddb.c	Tue Oct  3 16:07:53 2006
@@ -2477,6 +2477,8 @@
      */
     if (size == 0 && (flags & DB_FAST_STAT)) {
         flags = 0;
+        if (!err)
+            free(sp);
         goto redo_stat_for_length;
     }
 


More information about the Python-checkins mailing list