Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2022-07-04 10:57:12 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-07-04 10:57:12 +0300
commit4f6a54a735a993c450656a1180d27323668186cf (patch)
treef5c042a5420126e8c4862cbda0df77dbe7d012de /src/GCodes/GCodeBuffer/StringParser.cpp
parentfe0b4766b0c74368f810e79cb7530a74e5b1ff4f (diff)
Fixed memory leaks in expression parser
Diffstat (limited to 'src/GCodes/GCodeBuffer/StringParser.cpp')
-rw-r--r--src/GCodes/GCodeBuffer/StringParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GCodes/GCodeBuffer/StringParser.cpp b/src/GCodes/GCodeBuffer/StringParser.cpp
index a4ea34a4..bd8b2c74 100644
--- a/src/GCodes/GCodeBuffer/StringParser.cpp
+++ b/src/GCodes/GCodeBuffer/StringParser.cpp
@@ -1929,7 +1929,7 @@ void StringParser::AddParameters(VariableSet& vs, int codeRunning) noexcept
catch (const GCodeException&)
{
//TODO can we report the error anywhere?
- ev.Set(nullptr);
+ ev.SetNull(nullptr);
}
char paramName[2] = { letter, 0 };
vs.InsertNewParameter(paramName, ev);