Variables beeing accessed after they are deleted.

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
andrecaldas
Posts: 300
Joined: Fri Jan 27, 2023 8:45 pm
Contact:

Variables beeing accessed after they are deleted.

Post by andrecaldas »

In Expression.cpp, when simplifying the arguments of a function call, we do delete *it for it an iterator of the member variable args. And then, we call eval().

I do believe that eval() shall need the deleted args. And therefore, if I am not missing anything (again!), this is a bug.
Post Reply