forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdformat: Hotfix for memory leak in Converter.cc (RobotLocomotion#12533)
- Loading branch information
1 parent
3901c76
commit 22d3edd
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- src/Converter.cc Tue Dec 10 17:20:56 2019 +0100 | ||
+++ src/Converter.cc Fri Jan 03 17:03:14 2020 -0500 | ||
@@ -86,7 +86,7 @@ | ||
|
||
// Starting with the original SDF version, perform all the conversions | ||
// necessary in order to reach the _toVersion. | ||
- while (fromIter->first != _toVersion && fromIter != conversionMap.end()) | ||
+ while (fromIter != conversionMap.end() && fromIter->first != _toVersion) | ||
{ | ||
// Get the SDF to version. | ||
toVer = fromIter->second.first; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters