Kaydet (Commit) e75cad61 authored tarafından Neal Norwitz's avatar Neal Norwitz

Fix memory leak reported by valgrind while running test_subprocess

üst 210262c0
...@@ -2721,6 +2721,8 @@ redo_stat_for_length: ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment