Fix a memleak in yara