fclose on /proc/sys/kernel/randomize_va_space to avoid memory leak on fp
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 17 Apr 2009 18:09:40 +0000 (18:09 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 17 Apr 2009 18:09:40 +0000 (18:09 +0000)
src/conv-core/isomalloc.c

index ae70b719a87d562b759b608556ab59bd1fb4c51a..e7d189c527b9f7fb4e764d7f5f8027a9b2fa640d 100644 (file)
@@ -59,6 +59,7 @@ static int read_randomflag(void)
   else {
     random_flag = -1;
   }
+  fclose(fp);
   CmiUnlock(smp_mutex);
   return random_flag;
 }