Close before deleting

git-svn-id: file:///home/svn/framework3/trunk@5944 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2008-11-18 14:57:41 +00:00
parent 2bc4ca41b3
commit 05088e59f9
1 changed files with 1 additions and 2 deletions

View File

@ -426,10 +426,9 @@ module Db
end
data = File.read(fd.path)
fd.close
File.unlink(fd.path)
fd.close
load_nmap_xml(data)
end