Fix cppcheck 1.64 warnings
[alexxy/gromacs.git] / src / gromacs / gmxana / levenmar.c
index b1f6502770f0b9b04866c370d23bc1184d0e257e..9ec4716ad80045eade179e2e9eee90e8f7be373e 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -68,6 +68,8 @@ static real *rvector(int nl, int nh)
     {
         nrerror("allocation failure in rvector()", TRUE);
     }
+    /* cppcheck-suppress memleak
+     * free_vector does the same vector arithmetic */
     return v-nl;
 }
 
@@ -80,6 +82,8 @@ static int *ivector(int nl, int nh)
     {
         nrerror("allocation failure in ivector()", TRUE);
     }
+    /* cppcheck-suppress memleak
+     * free_vector does the same vector arithmetic */
     return v-nl;
 }