Skip to content

Commit

Permalink
bug fix where temp file was not being properly closed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwilliams committed Jul 31, 2017
1 parent 1c35763 commit a7ab913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyplot_module.f90
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ subroutine execute(me, pyfile, istat)
!delete the file (have to reopen it because
!Fortran has no file delete function)
open(newunit=iunit, file=file, status='OLD', iostat=istat)
if (istat/=0) close(iunit, status='DELETE', iostat=istat)
if (istat==0) close(iunit, status='DELETE', iostat=istat)
end if
if (istat/=0) then
write(error_unit,'(A)') 'Error closing file.'
Expand Down

0 comments on commit a7ab913

Please sign in to comment.