mirror of
https://github.com/nasa/trick.git
synced 2024-12-30 01:48:52 +00:00
replace delete with delete[] MatLab4.cpp
This commit is contained in:
parent
b10b56e671
commit
1c387551f6
@ -162,7 +162,7 @@ MatLab4::MatLab4(char * file_name , char * param_name , char * time_name ) {
|
|||||||
time_found = true ;
|
time_found = true ;
|
||||||
}
|
}
|
||||||
|
|
||||||
delete temp_ptr ;
|
delete [] temp_ptr ;
|
||||||
|
|
||||||
// skip to next parameter
|
// skip to next parameter
|
||||||
fseek( fp_ , row * column * size * ( 1 + imaginary ) , SEEK_CUR ) ;
|
fseek( fp_ , row * column * size * ( 1 + imaginary ) , SEEK_CUR ) ;
|
||||||
@ -395,11 +395,11 @@ int MatLab4LocateParam( char *file_name , char *param_name , char *time_name ) {
|
|||||||
|
|
||||||
if ( param_found && time_found ) {
|
if ( param_found && time_found ) {
|
||||||
fclose(fp) ;
|
fclose(fp) ;
|
||||||
delete temp_ptr ;
|
delete[] temp_ptr ;
|
||||||
return(1) ;
|
return(1) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
delete temp_ptr ;
|
delete[] temp_ptr ;
|
||||||
|
|
||||||
// skip to next parameter
|
// skip to next parameter
|
||||||
fseek( fp , row * column * size * ( 1 + imaginary ) , SEEK_CUR ) ;
|
fseek( fp , row * column * size * ( 1 + imaginary ) , SEEK_CUR ) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user