Free allocated memory outside parser.y module