Fix memory leak and permissions errors with sessions API in FreeBSD
Fix memory leak and permissions errors with sessions API in FreeBSD

pipian/libcueify,pipian/libcueify,pipian/libcueify,pipian/libcueify,pipian/libcueify