Skip to content

Commit ec630ba

Browse files
r_weissmpictor
authored andcommitted
Update to stepcode function 'DirObj::CheckIndex' to quiet a valgrind 'mismatched free' warning.
git-svn-id: svn://svn.code.sf.net/p/brlcad/code/brlcad/trunk@57177 2f96ce8b-6d43-0410-b8df-bffccc660ffb
1 parent 6963fc5 commit ec630ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clutils/dirobj.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ void DirObj::CheckIndex( int index ) {
285285
fileListSize = ( index + 1 ) * 2;
286286
newstrbuf = new char*[fileListSize];
287287
memmove( newstrbuf, fileList, fileCount * sizeof( char * ) );
288-
delete fileList;
288+
delete [] fileList;
289289
fileList = newstrbuf;
290290
}
291291
}

0 commit comments

Comments
 (0)