/[LeafOK_CVS]/lbbs/src/main.c
ViewVC logotype

Diff of /lbbs/src/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.58 by sysadm, Tue Jun 24 10:01:24 2025 UTC Revision 1.60 by sysadm, Thu Jun 26 12:17:02 2025 UTC
# Line 205  int main(int argc, char *argv[]) Line 205  int main(int argc, char *argv[])
205          }          }
206    
207          // Load menus          // Load menus
208          p_bbs_menu = calloc(1, sizeof(MENU_SET));          if (load_menu(&bbs_menu, CONF_MENU) < 0)
         if (p_bbs_menu == NULL)  
         {  
                 log_error("OOM: calloc(MENU_SET)\n");  
                 goto cleanup;  
         }  
         if (load_menu(p_bbs_menu, CONF_MENU) < 0)  
209          {          {
210                  goto cleanup;                  goto cleanup;
211          }          }
# Line 230  int main(int argc, char *argv[]) Line 224  int main(int argc, char *argv[])
224                  }                  }
225          }          }
226    
227          // Load section config          // Load section config and gen_ex
228          if (load_section_config_from_db(0) < 0)          if (load_section_config_from_db(1) < 0)
229          {          {
230                  log_error("load_section_config_from_db() error\n");                  log_error("load_section_config_from_db(0) error\n");
231                  goto cleanup;                  goto cleanup;
232          }          }
233    
# Line 289  cleanup: Line 283  cleanup:
283          file_loader_cleanup();          file_loader_cleanup();
284    
285          // Cleanup menu          // Cleanup menu
286          unload_menu(p_bbs_menu);          unload_menu(&bbs_menu);
         free(p_bbs_menu);  
         p_bbs_menu = NULL;  
287    
288          // Cleanup data pools          // Cleanup data pools
289          section_list_cleanup();          section_list_cleanup();


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1