mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 05:07:54 +00:00
remove unnecessary strdup causing memory leak
This commit is contained in:
parent
b7d24b60d6
commit
406f3bb207
@ -54,7 +54,7 @@ Csv::Csv(char * file_name , char * param_name ) {
|
||||
}
|
||||
else {
|
||||
if ( !strcmp(start_unit + 1,"--") ) {
|
||||
unitStr_ = strdup(start_unit + 1) ;
|
||||
unitStr_ = start_unit + 1;
|
||||
} else {
|
||||
unitStr_ = map_trick_units_to_udunits(start_unit + 1) ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user