--- lbbs/src/article_post.c 2025/06/15 03:16:44 1.16 +++ lbbs/src/article_post.c 2025/06/15 04:46:19 1.17 @@ -378,6 +378,9 @@ int article_post(const SECTION_LIST *p_s goto cleanup; } + mysql_close(db); + db = NULL; + clearscr(); moveto(1, 1); prints("发送完成,新文章通常会在%d秒后可见", BBS_section_list_load_interval); @@ -653,6 +656,9 @@ int article_modify(const SECTION_LIST *p goto cleanup; } + mysql_close(db); + db = NULL; + clearscr(); moveto(1, 1); prints("修改完成,新内容通常会在%d秒后可见", BBS_section_list_load_interval); @@ -756,6 +762,9 @@ int article_reply(const SECTION_LIST *p_ if (topic_locked) // Reply is not allowed { + mysql_close(db); + db = NULL; + clearscr(); moveto(1, 1); prints("该主题谢绝回复"); @@ -1150,6 +1159,9 @@ int article_reply(const SECTION_LIST *p_ goto cleanup; } + mysql_close(db); + db = NULL; + clearscr(); moveto(1, 1); prints("发送完成,新文章通常会在%d秒后可见", BBS_section_list_load_interval);