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