Fix memory leak reported by valgrind while running test_subprocess

This commit is contained in:
Neal Norwitz 2006-06-17 22:38:15 +00:00
parent 210262c0ec
commit e75cad6125
1 changed files with 2 additions and 0 deletions

View File

@ -2721,6 +2721,8 @@ redo_stat_for_length:
*/
if (size == 0 && (flags & DB_FAST_STAT)) {
flags = 0;
if (!err)
free(sp);
goto redo_stat_for_length;
}