dtinfo: Fix coverity warning related to using delete not delete []

This commit is contained in:
Peter Howkins
2018-04-23 02:20:23 +01:00
parent 22071fd62a
commit 2f634848ce
38 changed files with 75 additions and 75 deletions

View File

@@ -117,7 +117,7 @@ checkTocLink( const char *toc_file_name,
}
}
delete ToCFileName;
free(ToCFileName);
if ( flag ) {
throw(Unexpected("TOC validation failed\n"));
@@ -618,7 +618,7 @@ lookahead( char * bufptr, char * currentgi, char * indpos)
}
// otherwise the next start tag is the same as the current one, so no
// change to the indicator is needed.
delete nextgi;
free(nextgi);
}
return;
}
@@ -654,7 +654,7 @@ parse4last( char * bufptr )
} else {
lookahead(bufptr, startname, indicator);
}
delete startname;
free(startname);
} else {
// END TAG
for ( ; *bufptr != '>'; bufptr++) {