Hi,

I have a simple program in Fortran thaht I have copy from a tutorial web site. I use intel Fortran 11.1 on windows XP 32 bits. I have tested Intel Inspector XE 2011 Update 5 on this program and I have Kernel Resource Leaks on print, open and read.

I use this example because on my own program I have the same Kernel Resource Leaks on open and close function. So this program is just to test intel inspector.

Source: http://www.math.hawaii.edu/~hile/fortran/fort7.htm#open

program divisors ! This program finds the divisors of an integer input by the user. ! The divisors are printed to a file. integer n, k, d(10) open (unit = 1, file = "divisors") print *, "Enter a positive integer :" read *, n write (1,*) "Here are the divisors of ", n, " :" k = 0 do i = 1, n if (mod(n,i) .eq. 0) then k = k + 1 d(k) = i end if if (k .eq. 10) then write (1,5) (d(j), j = 1, 10) k = 0 end if end do write (1,5) (d(j), j = 1, k) 5 format (10i7) close (1) print *, "The divisors are listed in the file 'divisors'. Bye." end

Does Someone can tell me if it 's normal or not to have these Kernel Resources Leaks ?

Thank you.