Don't free connection internals before it's closed. [#34]
Don't free connection internals before it's closed. [#34]

When the connection freed up internal states (in this case the handler
lists) before closing itself it segfaulted when trying to unregister the
SASL handlers.

Reported by Julien Puydt.

mcabber/loudmouth,mhallendal/loudmouth,tuxad-loudmouth/loudmouth,tuxad-loudmouth/loudmouth,tyll/loudmouth,mcabber/loudmouth,mhallendal/loudmouth,tyll/loudmouth