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

Commitfb6825f

Browse files
committed
In PQsendQueryStart(), avoid leaking any left-over async result.
Ordinarily there would not be an async result sitting around at thispoint, but it appears that in corner cases there can be. Consideringall the work we're about to launch, it's hardly going to cost anythingnoticeable to check.It's been like this forever, so back-patch to all supported branches.Report: <CAD-Qf1eLUtBOTPXyFQGW-4eEsop31tVVdZPu4kL9pbQ6tJPO8g@mail.gmail.com>
1 parente84e476 commitfb6825f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/interfaces/libpq/fe-exec.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,8 +1240,7 @@ PQsendQueryStart(PGconn *conn)
12401240
}
12411241

12421242
/* initialize async result-accumulation state */
1243-
conn->result=NULL;
1244-
conn->curTuple=NULL;
1243+
pqClearAsyncResult(conn);
12451244

12461245
/* ready to send command message */
12471246
return true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp