mirror of https://github.com/xzeldon/htop.git
FreeBSD: add comment for memory leak workaround
Follow-up of #841 [ci skip]
This commit is contained in:
parent
604744f68d
commit
60cfa2edce
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Reference in New Issue