Message170774
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. |
|
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 | |
|