Fix a memory leak in zcrypt.c, caught by clang scan-build
Remove unused value in perlglue.xs, caught by clang scan-build
Fix some undefined behavior in filter.c, caught by clang scan-build