[MOAB-dev] commit/MOAB: danwu: Fix a minor memory leak issue in examples/HelloMOAB.cpp. It seems that cppcheck is not able to detect it.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Sep 20 16:14:01 CDT 2013


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/f335017a61a0/
Changeset:   f335017a61a0
Branch:      master
User:        danwu
Date:        2013-09-20 23:13:49
Summary:     Fix a minor memory leak issue in examples/HelloMOAB.cpp. It seems that cppcheck is not able to detect it.

Affected #:  1 file

diff --git a/examples/HelloMOAB.cpp b/examples/HelloMOAB.cpp
index 6129233..6ca2b23 100644
--- a/examples/HelloMOAB.cpp
+++ b/examples/HelloMOAB.cpp
@@ -57,6 +57,8 @@ int main( int argc, char** argv )
   cout << "Number of edges is " << edges.size() <<  endl;
   cout << "Number of faces is " << faces.size() <<  endl;
   cout << "Number of elements is " << elems.size() <<  endl;
-  
+
+  delete iface;
+
   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