We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88e512c commit 7209a3eCopy full SHA for 7209a3e
1 file changed
src/clutils/dirobj.cc
@@ -327,8 +327,8 @@ void DirObj::InsertFile( const char * f, int index ) {
327
328
void DirObj::RemoveFile( int index ) {
329
if( index < --fileCount ) {
330
+ free(fileList[index]);
331
const char ** spot = ( const char ** )&fileList[index];
- delete spot;
332
memmove( spot, spot + 1, ( fileCount - index )*sizeof( char * ) );
333
}
334
0 commit comments