mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
*** empty log message ***
This commit is contained in:
@@ -149,26 +149,21 @@ ECPGfinish(struct connection * act)
|
||||
PQfinish(act->connection);
|
||||
/* remove act from the list */
|
||||
if (act == all_connections)
|
||||
{
|
||||
all_connections = act->next;
|
||||
free(act->name);
|
||||
free(act);
|
||||
}
|
||||
else
|
||||
{
|
||||
struct connection *con;
|
||||
|
||||
for (con = all_connections; con->next && con->next != act; con = con->next);
|
||||
if (con->next)
|
||||
{
|
||||
con->next = act->next;
|
||||
free(act->name);
|
||||
free(act);
|
||||
}
|
||||
}
|
||||
|
||||
if (actual_connection == act)
|
||||
actual_connection = all_connections;
|
||||
|
||||
free(act->name);
|
||||
free(act);
|
||||
}
|
||||
else
|
||||
ECPGlog("ECPGfinish: called an extra time.\n");
|
||||
|
||||
Reference in New Issue
Block a user