Prevent possible memory leak.

This commit is contained in:
David F. Skoll
2007-08-12 20:01:50 -04:00
parent e49194c6ee
commit e1b2990fb0

View File

@@ -366,8 +366,8 @@ int Evaluate(char **s, Var *locals)
r = CallUserFunc(ufname, args);
free(ufname);
}
if (r) return r;
DBufFree(&ExprBuf);
if (r) return r;
}
} else { /* Unary operator */
f = FindFunc(DBufValue(&ExprBuf), UnOp, NUM_UN_OPS);