mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 15:15:44 +00:00
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
Block a user