From 406f3bb207cc3ac3bd860a6652d1c7332bcfdbf9 Mon Sep 17 00:00:00 2001 From: Scott Fennell Date: Fri, 28 Sep 2018 10:07:20 -0500 Subject: [PATCH] remove unnecessary strdup causing memory leak --- trick_source/data_products/Log/Csv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trick_source/data_products/Log/Csv.cpp b/trick_source/data_products/Log/Csv.cpp index 12dec266..e90aa922 100644 --- a/trick_source/data_products/Log/Csv.cpp +++ b/trick_source/data_products/Log/Csv.cpp @@ -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) ; }