I'm working with a large FORTRAN codebase and running into what appears to be a large number of false positives. I'm working with the latest version of the compiler and Inspector, but I do not understand how I can refactor the code to remove these errors. Any help into understanding these issues would be appreciated.
RE:
------
Allocation site MEMORY LEAK
69 icount = 0
70 do
>71 read(73,*, end = 101, err = 102)
72 icount = icount + 1
73 enddo
-----
Allocation site, Read MEMORY LEAK
239 line = ' '
240
>241 OPEN(lun,FILE=file_str%file,STATUS='OLD',ACTION='READ',IOSTAT=ios)
242 IF( ios /= 0 )GOTO 9999
243
-----
Allocation site, Read UNINITIALIZED MEMORY ACCESS
22 !==== Open the file
23
>24 OPEN( UNIT=lunit,FILE=file,STATUS='OLD',ACTION='READ',IOSTAT=ios )
25 IF( ios /= 0 )THEN
26 nError = OP_ERROR


