1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-18 13:44:19 +03:00

Fix memory leak in pg_restore.c

Oversight in 1495eff7bdb

Author: Ranier Vilela <ranier.vf@gmail.com>
This commit is contained in:
Andrew Dunstan 2025-04-10 14:54:39 -04:00
parent d89335eea6
commit 22cb6d2895

View File

@ -902,6 +902,8 @@ read_one_statement(StringInfo inBuf, FILE *pfile)
break; break;
} }
destroyStringInfo(&q);
if (c == '\n') if (c == '\n')
appendStringInfoChar(inBuf, (char) '\n'); appendStringInfoChar(inBuf, (char) '\n');
} }