File openjdk-6-src-b17-stack-protector-fclose.patch of Package java-1_6_0-openjdk

Index: icedtea6-1.7.3/openjdk/hotspot/src/os/linux/vm/os_linux.cpp
===================================================================
--- icedtea6-1.7.3.orig/openjdk/hotspot/src/os/linux/vm/os_linux.cpp
+++ icedtea6-1.7.3/openjdk/hotspot/src/os/linux/vm/os_linux.cpp
@@ -2555,6 +2555,7 @@ get_stack_bounds(uintptr_t *bottom, uint
     char *str = NULL;
     ssize_t len = getline(&str, &dummy, f);
     if (len == -1) {
+      fclose(f);
       return false;
     }
 
@@ -2571,6 +2572,7 @@ get_stack_bounds(uintptr_t *bottom, uint
 	  uintptr_t sp = (uintptr_t)__builtin_frame_address(0);
 	  if (sp >= *bottom && sp <= *top) {
 	    free(str);
+            fclose(f);
 	    return true;
 	  }
 	}
@@ -2579,6 +2581,7 @@ get_stack_bounds(uintptr_t *bottom, uint
     free(str);
   }
 
+  fclose(f);
   return false;
 }
 
openSUSE Build Service is sponsored by