|   | 1 |  initial version  | 
That code shouldn't leak, but I confirm that it does. That's a bug! please file a ticket.
(the leak is not on the python heap; I checked that. It's probably a malloc/free mismatch somewhere in a C library). Also, when I change GF(2) to GF(3), no leak seems to occur. Matrices over GF(2) indeed have their own implementation.
 Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
 
                
                Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.