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

Commit4013a5a

Browse files
Fix check for memory allocation
Commit61461a3 accidentally checked memory allocation successusing the wrong variable.Author: Ranier Vilela <ranier.vf@gmail.com>Reviewed-by: Jelte Fennema-Nio <postgres@jeltef.nl>Reviewed-by: Daniel Gustafsson <daniel@yesql.se>Discussion:https://postgr.es/m/CAEudQAqQFTH7xCB-+K6zEKjfqbhqCxcr_w4DuJTxVT6h3vzu2w@mail.gmail.com
1 parent7c655a0 commit4013a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ PQcancelCreate(PGconn *conn)
145145
}
146146

147147
cancelConn->addr=calloc(cancelConn->naddr,sizeof(AddrInfo));
148-
if (!cancelConn->connhost)
148+
if (!cancelConn->addr)
149149
gotooom_error;
150150

151151
cancelConn->addr[0].addr=conn->raddr;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp