Skip to content

Commit 22cb6d2

Browse files
committed
Fix memory leak in pg_restore.c
Oversight in 1495eff Author: Ranier Vilela <ranier.vf@gmail.com>
1 parent d89335e commit 22cb6d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bin/pg_dump/pg_restore.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,8 @@ read_one_statement(StringInfo inBuf, FILE *pfile)
902902
break;
903903
}
904904

905+
destroyStringInfo(&q);
906+
905907
if (c == '\n')
906908
appendStringInfoChar(inBuf, (char) '\n');
907909
}

0 commit comments

Comments
 (0)