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