mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Fix regression in dblink_disconnect() reported by Eduardo Stern:
persistent_conn was left dangling after a disconnect in the unnamed connection case, causing a subsequent disconnect to crash the backend.
This commit is contained in:
@ -256,6 +256,8 @@ dblink_disconnect(PG_FUNCTION_ARGS)
|
||||
deleteConnection(conname);
|
||||
pfree(rcon);
|
||||
}
|
||||
else
|
||||
persistent_conn = NULL;
|
||||
|
||||
PG_RETURN_TEXT_P(GET_TEXT("OK"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user