Skip to content

Commit

Permalink
Fixed one crash bug in fiber module that the fe shouldn't be freed in…
Browse files Browse the repository at this point in the history
… wait_write() in fiber_write.c.
  • Loading branch information
zhengshuxin committed Oct 25, 2024
1 parent 65f9375 commit 06df92f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib_acl/src/init/acl_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
3 changes: 2 additions & 1 deletion lib_fiber/c/src/hook/fiber_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 06df92f

Please sign in to comment.