Revision: 70810 http://sourceforge.net/p/brlcad/code/70810 Author: starseeker Date: 2018-03-08 00:20:37 +0000 (Thu, 08 Mar 2018) Log Message: ----------- if we're bailing, delete df
Modified Paths: -------------- brlcad/trunk/src/libanalyze/nirt.cxx Modified: brlcad/trunk/src/libanalyze/nirt.cxx =================================================================== --- brlcad/trunk/src/libanalyze/nirt.cxx 2018-03-07 21:24:55 UTC (rev 70809) +++ brlcad/trunk/src/libanalyze/nirt.cxx 2018-03-08 00:20:37 UTC (rev 70810) @@ -2261,6 +2261,7 @@ std::vector<std::string> substrs = _nirt_string_split(rstr); if (substrs.size() != 6) { nerr(nss, "Error processing ray line \"%s\"!\nExpected 6 elements, found %d\n", line.c_str(), substrs.size()); + delete df; return -1; } VSET(df->orig, _nirt_str_to_dbl(substrs[0], 0), _nirt_str_to_dbl(substrs[1], 0), _nirt_str_to_dbl(substrs[2], 0)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits