schwehr / libais

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

ais_py.cpp: Ensure all references are cleared before raising ais_py_exception #224

Closed lsix closed 2 years ago

lsix commented 2 years ago

When a decoding error occured, some places did keep a reference to a dict being constructed. This patch makes sure that such reference is cleared before returning raising an exception.