--- cvs_ltp.orig/testcases/kernel/syscalls/confstr/confstr01.c	2003-03-05 02:34:03.000000000 +0800
+++ cvs_ltp/testcases/kernel/syscalls/confstr/confstr01.c	2008-09-17 15:46:22.000000000 +0800
@@ -127,10 +127,10 @@ int main()
 				break;
 			}
 
-			/* Reset the buffer contents to NULL */
-			buf = '\0';
 			/* Free the memory allocated for config. name */
 			free(buf);
+			/* Reset the buffer contents to NULL */
+			buf = '\0';
 		} else {
 			if (!buf) {
 				if ((!strcmp("XXX5_MYBIG_VERBIG_MYFLAGS",
