Fix memleak in core/anal