summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan2025-04-12 18:54:48 +0000
committerAndrew Dunstan2025-04-12 18:54:48 +0000
commitf09088a01d3372fdfe5da12dd0b2e24989f0caa6 (patch)
tree8024555066b956d5e0ec5bc403c04f3b6b89b54e
parent78637a8be20e49d8cbfdecf2d6db1f45b9695211 (diff)
Free memory properly in pg_restore.c
Thinko in commit 39729ec01d2. Mea maxima culpa. Per Mahendra Singh Thalor <mahi6run@gmail.com>
-rw-r--r--src/bin/pg_dump/pg_restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_restore.c b/src/bin/pg_dump/pg_restore.c
index 24a44b81a95..ff4bb320fc9 100644
--- a/src/bin/pg_dump/pg_restore.c
+++ b/src/bin/pg_dump/pg_restore.c
@@ -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)