Merge release-5-0 into master
[alexxy/gromacs.git] / src / gromacs / gmxlib / gmx_cpuid.c
index 020e37aa55f41544d69724a70708f5113ecd4941..c786c0e5bb1324a72de26c3f1ed3ca71f5545a17 100644 (file)
  * To help us fund GROMACS development, we humbly ask that you cite
  * the research papers on the package. Check out http://www.gromacs.org.
  */
+#include "gmxpre.h"
+
 #ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "config.h"
 #endif
 
 #ifdef HAVE_SCHED_H
@@ -60,7 +62,7 @@
     #include <unistd.h>
 #endif
 
-#include "gmx_cpuid.h"
+#include "gromacs/legacyheaders/gmx_cpuid.h"
 
 
 
@@ -469,6 +471,7 @@ cpuid_renumber_elements(int *data, int n)
             }
         }
     }
+    free(unique);
     return nunique;
 }