Skip to content

Commit f09088a

Browse files
committed
Free memory properly in pg_restore.c
Thinko in commit 39729ec. Mea maxima culpa. Per Mahendra Singh Thalor <mahi6run@gmail.com>
1 parent 78637a8 commit f09088a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_dump/pg_restore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ read_one_statement(StringInfo inBuf, FILE *pfile)
906906
appendStringInfoChar(inBuf, (char) '\n');
907907
}
908908

909-
destroyStringInfo(&q);
909+
pg_free(q.data);
910910

911911
/* No input before EOF signal means time to quit. */
912912
if (c == EOF && inBuf->len == 0)

0 commit comments

Comments
 (0)