schwehr / libais

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

Fix memory leaks while handling messages 6, 8 and 24 #198

Open simeonmiteff opened 5 years ago

simeonmiteff commented 5 years ago

Fix rather rapid memory leaks caused by Python objects allocated in the handling of messages 6, 8 and 24 not being freed because of missing Py_DECREF calls when encountering an error and returning nullptr.

eLvErDe commented 4 years ago

Hello,

We experienced a severe memory leak as well and this patch fixed the issue, thanks.