mirror of
https://github.com/postgres/postgres.git
synced 2025-04-18 13:44:19 +03:00
Free memory properly in pg_restore.c
Thinko in commit 39729ec01d2. Mea maxima culpa. Per Mahendra Singh Thalor <mahi6run@gmail.com>
This commit is contained in:
parent
78637a8be2
commit
f09088a01d
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user