mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-08 03:57:08 +03: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)
|
if (devstat_checkversion(NULL) < 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// use static to plug memory leak; see #841
|
||||||
static struct devinfo info = { 0 };
|
static struct devinfo info = { 0 };
|
||||||
struct statinfo current = { .dinfo = &info };
|
struct statinfo current = { .dinfo = &info };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user