1
0
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:
Andrew Dunstan 2025-04-12 14:54:48 -04:00
parent 78637a8be2
commit f09088a01d

View File

@ -906,7 +906,7 @@ read_one_statement(StringInfo inBuf, FILE *pfile)
appendStringInfoChar(inBuf, (char) '\n');
}
destroyStringInfo(&q);
pg_free(q.data);
/* No input before EOF signal means time to quit. */
if (c == EOF && inBuf->len == 0)