Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf09088a

Browse files
committed
Free memory properly in pg_restore.c
Thinko in commit39729ec. Mea maxima culpa.Per Mahendra Singh Thalor <mahi6run@gmail.com>
1 parent78637a8 commitf09088a

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)

[8]ページ先頭

©2009-2025 Movatter.jp