remove unnecessary strdup causing memory leak

This commit is contained in:
Scott Fennell 2018-09-28 10:07:20 -05:00
parent b7d24b60d6
commit 406f3bb207

View File

@ -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) ;
}