Fixed memory leak in builtin_var()