petehunt/PyMySQL — pull request #113 by j00bar (2012-07-18 23:33:47+00:00)
Title: Removed object-level reference to first_packet in connections.MySQLResult, which can lead to a reference cycle and thus memory leaks

MySQLResult's storage of first_packet at the object level can lead to a reference cycle which can trip up the garbage collector.

connections.MySQLResult.first_packet -> connections.MySQLPacket
connections.MySQLPacket.connection -> connections.Connection
connections.Connection._result -> connections.MySQLResult