senchalabs/connect — pull request #622 by louischatriot (2012-07-05 09:38:14+00:00)
Title: Preventing memory leak if there is pathname mismatch (really fixes #615)

Hello,

Actually, commit e44351e1140d47f4bb7ba15d0332ddd13f4d999d didn't fix issue #615. In case of pathname mismatch, a new session and corresponding store key was still created, and the cookie not sent. I put the pathname mismatch test at the beginning of the middleware to prevent this memory leak.

Cheers,
Louis