| 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 |
} |
} |
| 224 |
} |
} |
| 225 |
} |
} |
| 226 |
|
|
| 227 |
// Load section config |
// Load section config and gen_ex |
| 228 |
if (load_section_config_from_db() < 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 |
|
|
| 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(); |