- config.c:config_load(): move the fclose(yyin) right after yyparse()
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Fri, 26 Jun 2015 16:58:11 +0000 (16:58 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Fri, 26 Jun 2015 16:58:11 +0000 (16:58 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@6209 82007160-df01-0410-b94d-b575c5fd34c7

src/config.c

index ab21c4c93230f551b11aa8d1fb3d27cfb3973ba8..37cfcedfe48b4b96085f03fd3150099c6048ff61 100644 (file)
@@ -115,12 +115,11 @@ config_load(const char *filename)
   }
 
   yyparse();
+  fclose(yyin);
 
   scan_init();     /* Initialize the scanners once we have the configuration */
   stats_init();    /* Initialize stats (UPTIME) */
   firedns_init();  /* Initialize adns */
-
-  fclose(yyin);
 }
 
 void