mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-16 03:30:50 +08:00
Call PQfinish() when PostgreSQL connection failed to initialize. Closes #544.
This commit is contained in:
@ -2083,6 +2083,7 @@ begin
|
|||||||
Error := LastErrorMsg;
|
Error := LastErrorMsg;
|
||||||
Log(lcError, Error);
|
Log(lcError, Error);
|
||||||
FConnectionStarted := 0;
|
FConnectionStarted := 0;
|
||||||
|
PQfinish(FHandle); // free the memory
|
||||||
FHandle := nil;
|
FHandle := nil;
|
||||||
raise EDatabaseError.Create(Error);
|
raise EDatabaseError.Create(Error);
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user