I've just uploaded a patch that fixes the memory leak when transactions are disabled.
I've run rudimentary tests and it appears to be working properly. Please let me know if you have any feedback.
Found a bug in the patch (the fix has been uploaded). If you applied the first version, please grab the new one.
Sorry about that - shouldn't be writing code at midnight :-)