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.
Allocation site MEMORY LEAK
69 icount = 0
>71 read(73,*, end = 101, err = 102)
72 icount = icount + 1
Allocation site, Read MEMORY LEAK
239 line = ' '
242 IF( ios /= 0 )GOTO 9999
Allocation site, Read UNINITIALIZED MEMORY ACCESS
22 !==== Open the file
>24 OPEN( UNIT=lunit,FILE=file,STATUS='OLD',ACTION='READ',IOSTAT=ios )
25 IF( ios /= 0 )THEN
26 nError = OP_ERROR
Is it possible to provide working sample of your application where the arguable errors can be found? Your results would be helpful as well. And please let me know the Inspector XEcommand line("Show command line" buttom from GUI).
You can make the thread private to secure your code samples. I'll try to reproduce them on my side and experiment with possible resolutions.