on master help sign in
Drop redundant fclose_helper call

A null file pointer doesn't need closing; `fclose_helper` will indeed do nothing on a null pointer.

commite878add6bb1bffe3e96c410b87cac8b662e34b82 authorPaolo G. Giarrusso <p.giarrusso@gmail.com> dateSun 14 Aug 2016, 20:44 (10 years ago) parente2109cd
1 file changed−1
Text/Libyaml.hs−1
Text/Libyaml.hs−1
@@ -543,7 +543,6 @@ decodeFile file =
543543 file' <- openFile file read_flags "r"
544544 if file' == nullPtr
545545 then do
546− c_fclose_helper file'
547546 c_yaml_parser_delete ptr
548547 free ptr
549548 throwIO $ YamlException