commit | e75cad6125c45cbe7f81a3eb8d18a29866f6405a | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Sat Jun 17 22:38:15 2006 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Sat Jun 17 22:38:15 2006 +0000 |
tree | 7ba2758dd4ee65b0d676134131dd0a0b32163e66 | |
parent | 210262c0ec0356dfa7e8f0778783e678e8075a04 [diff] [blame] |
Fix memory leak reported by valgrind while running test_subprocess
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index d43d4aa..a88f01f 100644 --- a/Modules/_bsddb.c +++ b/Modules/_bsddb.c
@@ -2721,6 +2721,8 @@ */ if (size == 0 && (flags & DB_FAST_STAT)) { flags = 0; + if (!err) + free(sp); goto redo_stat_for_length; }