schwehr / libais

C++ decoder for Automatic Identification System for tracking ships and decoding maritime information
Other
218 stars 97 forks source link

Solve memory leakage for ais20_to_pydict #119

Closed davoli closed 8 years ago

davoli commented 9 years ago

Changes will solve #116, a memory leakage of ais20_to_pydict. In particular, it has been included a explicit decrement to the reference count for object list. Furthermore, in order to prevent additional leakages from PyUnicode_FromString the reservations string has been created and freed out of the PyDict_SetItem call.

landscape-bot commented 9 years ago

Code Health Code quality remained the same when pulling 9ed85b4 on davoli:ais20_leak into 5a1df28 on schwehr:master.

davoli commented 8 years ago

@schwehr Have you had the opportunity to check the patch? Thanks

schwehr commented 8 years ago

Thanks for the contribution