microprofile icon indicating copy to clipboard operation
microprofile copied to clipboard

Some dynamically allocated structures are never freed

Open TLaviron opened this issue 5 years ago • 1 comments
trafficstars

I have noticed that the MicroProfileThreadLog objects, which are allocated on demand, are never deleted, along with the MicroProfile.LabelBuffer buffer.

I assume these are meant to last for the whole duration of the program, and so the memory will be reacquired by the system when the program exits, but the allocations show up in leak checking tools because of that. Is there a specific reason these objects are not freed during the MicroProfileShutdown call?

TLaviron avatar Feb 05 '20 14:02 TLaviron

No specific reason, just an omission.

zeux avatar Feb 05 '20 15:02 zeux