Without this patch, htop leaks 4 bytes of memory for each update. The very same bug is fixed in the development version of htop.
Created attachment 228620 [details] Patch for freebsd/Platform.c turning the local info variable to a static, local variable
Reference: https://github.com/htop-dev/htop/commit/2128edfba22782853b020ee69af1ac0a5ea873f5
The patch is contained within 3.1.1. Would you mind that I just update the port to 3.1.1?
(In reply to Hung-Yi Chen from comment #3) Upgrading to 3.1.1 is probably the best thing to do. Make it so. (Sorry, I couldn't resist.)
Hello, I've just committed htop 3.1.1 in https://cgit.freebsd.org/ports/commit/?id=4c66dde9668524e734760c634c6c1090d16c7887 Could this PR be closed? Cheers
Fixed by upgrading the port to 3.1.1.