Close file opened in load_patch() on success

Fixes #327
develop
Lethosor 2014-09-10 15:09:57 -04:00
parent c4d6c384ae
commit 9d3af4dcb6
1 changed files with 1 additions and 0 deletions

@ -37,6 +37,7 @@ local function load_patch(name)
end end
end end
file:close()
return { name = name, old_bytes = old_bytes, new_bytes = new_bytes } return { name = name, old_bytes = old_bytes, new_bytes = new_bytes }
end end