diff options
author | Daniel Lange <DLange@git.local> | 2022-02-04 11:23:02 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2022-02-04 11:23:02 +0100 |
commit | a6822e98434cf7da6fab033898094976d881ee0f (patch) | |
tree | 2b0f2ac3ad8c9e9a8c01bb692d9bdb51ce91e83b /freebsd/Platform.c | |
parent | 30ce3b4c264c51c98f280e88e23792ff7deb2317 (diff) | |
download | debian_htop-a6822e98434cf7da6fab033898094976d881ee0f.tar.gz debian_htop-a6822e98434cf7da6fab033898094976d881ee0f.tar.bz2 debian_htop-a6822e98434cf7da6fab033898094976d881ee0f.zip |
New upstream version 3.1.2upstream/3.1.2
Diffstat (limited to 'freebsd/Platform.c')
-rw-r--r-- | freebsd/Platform.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/freebsd/Platform.c b/freebsd/Platform.c index 9c88b40..6c82bc2 100644 --- a/freebsd/Platform.c +++ b/freebsd/Platform.c @@ -127,8 +127,9 @@ const MeterClass* const Platform_meterTypes[] = { NULL }; -void Platform_init(void) { +bool Platform_init(void) { /* no platform-specific setup needed */ + return true; } void Platform_done(void) { @@ -284,6 +285,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 }; |