mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-11-29 18:37:41 +08:00
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:
parent
65f9375a00
commit
06df92ff34
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user