You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prepared: Prevent mem allocs during cleanup (#138)
If a prepared statement is collected during a GC run and the d'tor is
called, it causes another allocation through either:
- allocation of the packet array
- allocation of an exception when trying to write to a closed connection
In both cases, the GC freaks out and throws an InvalidMemoryOperation.
This commit fixes the two allocation cases I found. There may be more.
0 commit comments