[MOAB-dev] commit/MOAB: danwu: Fix memory leak in unit test kd_tree_time.cpp. This was found by cppcheck.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Sep 23 13:54:14 CDT 2013


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/1f58351b547b/
Changeset:   1f58351b547b
Branch:      master
User:        danwu
Date:        2013-09-23 20:54:03
Summary:     Fix memory leak in unit test kd_tree_time.cpp. This was found by cppcheck.

Affected #:  1 file

diff --git a/test/kd_tree_time.cpp b/test/kd_tree_time.cpp
index 7917295..10af975 100644
--- a/test/kd_tree_time.cpp
+++ b/test/kd_tree_time.cpp
@@ -144,6 +144,7 @@ int main( int argc, char* argv[] )
     }
   }
   printf("%0.2f seconds\n", (clock()-t)/(double)CLOCKS_PER_SEC); fflush( stdout );
+  delete[] values;
 
   return 0;
 }

Repository URL: https://bitbucket.org/fathomteam/moab/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the moab-dev mailing list