Message170774
| 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:00 | Daniel.Sommermann | set | recipients:
+ Daniel.Sommermann, pitrou |
| 2012年09月19日 22:02:00 | Daniel.Sommermann | set | messageid: <1348092120.32.0.751173728211.issue15977@psf.upfronthosting.co.za> |
| 2012年09月19日 22:01:59 | Daniel.Sommermann | link | issue15977 messages |
| 2012年09月19日 22:01:59 | Daniel.Sommermann | create |
|