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:
parent
d89335eea6
commit
22cb6d2895
@ -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');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user