mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Free memory properly in pg_restore.c
Thinko in commit 39729ec01d
. Mea maxima culpa.
Per Mahendra Singh Thalor <mahi6run@gmail.com>
This commit is contained in:
@ -906,7 +906,7 @@ read_one_statement(StringInfo inBuf, FILE *pfile)
|
|||||||
appendStringInfoChar(inBuf, (char) '\n');
|
appendStringInfoChar(inBuf, (char) '\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
destroyStringInfo(&q);
|
pg_free(q.data);
|
||||||
|
|
||||||
/* No input before EOF signal means time to quit. */
|
/* No input before EOF signal means time to quit. */
|
||||||
if (c == EOF && inBuf->len == 0)
|
if (c == EOF && inBuf->len == 0)
|
||||||
|
Reference in New Issue
Block a user