Fix memory leak reported by valgrind while running test_subprocess
This commit is contained in:
parent
210262c0ec
commit
e75cad6125
|
@ -2721,6 +2721,8 @@ redo_stat_for_length:
|
||||||
*/
|
*/
|
||||||
if (size == 0 && (flags & DB_FAST_STAT)) {
|
if (size == 0 && (flags & DB_FAST_STAT)) {
|
||||||
flags = 0;
|
flags = 0;
|
||||||
|
if (!err)
|
||||||
|
free(sp);
|
||||||
goto redo_stat_for_length;
|
goto redo_stat_for_length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue