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

Commitaf0b49f

Browse files
author
Michael Meskes
committed
Fix memory leak in ecpglib's connect function.
Patch by Michael Paquier
1 parent2bed1cd commitaf0b49f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/interfaces/ecpg/ecpglib/connect.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,10 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p
321321
}
322322

323323
if ((this= (structconnection*)ecpg_alloc(sizeof(structconnection),lineno))==NULL)
324+
{
325+
ecpg_free(dbname);
324326
return false;
327+
}
325328

326329
if (dbname!=NULL)
327330
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp