diff --git a/config/c_get_alignment.m4 b/config/c_get_alignment.m4 index 4ec7bf7c1b3..a300cc3d1a3 100644 --- a/config/c_get_alignment.m4 +++ b/config/c_get_alignment.m4 @@ -44,6 +44,7 @@ AC_DEFUN([OPAL_C_GET_ALIGNMENT],[ FILE *f=fopen("conftestval", "w"); if (!f) exit(1); diff = ((char *)&p->x) - ((char *)&p->c); + free(p); fprintf(f, "%d\n", (diff >= 0) ? diff : -diff); ]])], [AS_TR_SH([opal_cv_c_align_$1])=`cat conftestval`], [AC_MSG_WARN([*** Problem running configure test!])