Merge release-5-0 into master
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / hackblock.c
index 0e4e1c1cfa988a8723208fb7e5620eda7d03d1f0..0da489f4a2c03b340025e8630579e40eaf1cda54 100644 (file)
@@ -42,8 +42,7 @@
 #include <string.h>
 #include "hackblock.h"
 #include "gromacs/utility/smalloc.h"
-#include "vec.h"
-#include "macros.h"
+#include "gromacs/math/vec.h"
 #include "names.h"
 
 /* these MUST correspond to the enum in hackblock.h */
@@ -94,7 +93,7 @@ void free_t_restp(int nrtp, t_restp **rtp)
             free_t_bondeds(&(*rtp)[i].rb[j]);
         }
     }
-    free(*rtp);
+    sfree(*rtp);
 }
 
 void free_t_hack(int nh, t_hack **h)