Revision: 57177
http://sourceforge.net/p/brlcad/code/57177
Author: r_weiss
Date: 2013-08-27 15:10:34 +0000 (Tue, 27 Aug 2013)
Log Message:
-----------
Update to stepcode function 'DirObj::CheckIndex' to quiet a valgrind
'mismatched free' warning.
Modified Paths:
--------------
brlcad/trunk/src/other/stepcode/src/clutils/dirobj.cc
Modified: brlcad/trunk/src/other/stepcode/src/clutils/dirobj.cc
===================================================================
--- brlcad/trunk/src/other/stepcode/src/clutils/dirobj.cc 2013-08-27
15:05:15 UTC (rev 57176)
+++ brlcad/trunk/src/other/stepcode/src/clutils/dirobj.cc 2013-08-27
15:10:34 UTC (rev 57177)
@@ -285,7 +285,7 @@
fileListSize = ( index + 1 ) * 2;
newstrbuf = new char*[fileListSize];
memmove( newstrbuf, fileList, fileCount * sizeof( char * ) );
- delete fileList;
+ delete [] fileList;
fileList = newstrbuf;
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits