Fix small memory leak in core_yara.c