Fix memory leak inside of Twisted 12.3.0

@exarkun could you check this out? /cc @mmaker @evilaliv3