After talking with the author Roy Keene, my patches were applied: * NetBSD support. * No need to call free() in swapd_get_free_mem().
"Swapd" is a daemon that watches free memory and manages swap files. If free memory drops too low, additional swap files are created. Additionally, if there is too much free memory, swap files are deactivated and disk space may be reclaimed.