File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -751,7 +751,6 @@ dictionary * iniparser_load_file(FILE * in, const char * ininame)
751
751
752
752
dict = dictionary_new (0 ) ;
753
753
if (!dict ) {
754
- fclose (in );
755
754
return NULL ;
756
755
}
757
756
@@ -773,7 +772,6 @@ dictionary * iniparser_load_file(FILE * in, const char * ininame)
773
772
ininame ,
774
773
lineno );
775
774
dictionary_del (dict );
776
- fclose (in );
777
775
return NULL ;
778
776
}
779
777
/* Get rid of \n and spaces at end of line */
@@ -830,7 +828,6 @@ dictionary * iniparser_load_file(FILE * in, const char * ininame)
830
828
dictionary_del (dict );
831
829
dict = NULL ;
832
830
}
833
- fclose (in );
834
831
return dict ;
835
832
}
836
833
@@ -859,6 +856,7 @@ dictionary * iniparser_load(const char * ininame)
859
856
}
860
857
861
858
dict = iniparser_load_file (in , ininame );
859
+ fclose (in );
862
860
863
861
return dict ;
864
862
}
You can’t perform that action at this time.
0 commit comments