1
0
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:
Michael Meskes
1999-04-16 12:26:49 +00:00
parent 075dc252c7
commit ad5a54d170
5 changed files with 20 additions and 15 deletions

View File

@@ -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");