This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Daniel.Sommermann
Recipients Daniel.Sommermann, pitrou
Date 2012-09-19.22:01:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348092120.32.0.751173728211.issue15977@psf.upfronthosting.co.za>
In-reply-to
Content
I noticed that the function _set_npn_protocols() has the following line:

self->npn_protocols = PyMem_Malloc(protos.len);

There is no check to see if self->npn_protocols is already allocated. Thus, multiple calls to _set_npn_protocols() will leak memory. There should be a check to see if it is non-null and free the memory pointed to by self->npn_protocols before the malloc unless I am missing something.
History
Date User Action Args
2012-09-19 22:02:00Daniel.Sommermannsetrecipients: + Daniel.Sommermann, pitrou
2012-09-19 22:02:00Daniel.Sommermannsetmessageid: <1348092120.32.0.751173728211.issue15977@psf.upfronthosting.co.za>
2012-09-19 22:01:59Daniel.Sommermannlinkissue15977 messages
2012-09-19 22:01:59Daniel.Sommermanncreate