mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Fix memory leak in pg_restore.c
Oversight in 1495eff7bd
Author: Ranier Vilela <ranier.vf@gmail.com>
This commit is contained in:
@ -902,6 +902,8 @@ read_one_statement(StringInfo inBuf, FILE *pfile)
|
||||
break;
|
||||
}
|
||||
|
||||
destroyStringInfo(&q);
|
||||
|
||||
if (c == '\n')
|
||||
appendStringInfoChar(inBuf, (char) '\n');
|
||||
}
|
||||
|
Reference in New Issue
Block a user