FreeBSD: add comment for memory leak workaround

Follow-up of #841

[ci skip]
This commit is contained in:
Christian Göttsche 2021-10-15 16:08:33 +02:00 committed by BenBE
parent 604744f68d
commit 60cfa2edce

View File

@ -284,6 +284,7 @@ bool Platform_getDiskIO(DiskIOData* data) {
if (devstat_checkversion(NULL) < 0)
return false;
// use static to plug memory leak; see #841
static struct devinfo info = { 0 };
struct statinfo current = { .dinfo = &info };