ecmwf / pdbufr

High-level BUFR interface for ecCodes
Apache License 2.0
23 stars 8 forks source link

Memory is accumulated as BUFR messages are processed #40

Closed sandorkertesz closed 1 year ago

sandorkertesz commented 1 year ago

For the temp.bufr file (500KB, a few hundred messages) from the test samples if we run a simple extraction the peak memory usage is 1.5. GB! Simple tests show that the memory allocated to the message handle is not released after the message is processed in the main message loop.

iainrussell commented 1 year ago

This was a really good catch - well done Sandor!