Fixed one crash bug in fiber module that the fe shouldn't be freed in wait_write() in fiber_write.c.

This commit is contained in:
zhengshuxin 2024-10-25 17:49:57 +08:00
parent 65f9375a00
commit 06df92ff34
2 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,7 @@
#include "init.h"
static char *version = "3.6.1-6 20241025-16:36";
static char *version = "3.6.1-6 20241025-17:42";
const char *acl_version(void)
{

View File

@ -36,7 +36,8 @@ static int wait_write(FILE_EVENT *fe)
CLR_POLLING(fe);
if (fiber_wait_write(fe) < 0) {
fiber_file_free(fe);
// Bugfix: Don't free fe here, or crash will happen!.
// fiber_file_free(fe);
return -1;
}