Memory-safe method of handling RBXScriptConnections?

Let’s say I have an array of an arbitrary number of RBXScriptConnections that are stored to later be disconnected:

---ConnectionScript.client.lua

local C = {} :: {RBXScriptConnection}

Under what conditions, should ConnectionScript be destroyed, or if table.clear(C) is called, will array C and/or the connections stored inside it not leak memory?

Connections are destroyed if the thing that would fire them goes away. It will still be safe to call Disconnect on them in this case but it will do nothing.

I didn’t ask whether or not I could call Disconnect

I’m asking what has to be done to C in order to make it memory-safe should its calling environment be destroyed, or table.clear() is called on it

Connections follow the same garbage collection rules as anything else in Lua.