The major problem with your patch is that it was submitted as a single giant piece and that makes it extremely difficult to review. If you could split it into a series of self-contained patches that each fix one leak or one module it could be applied much more efficiently.