Skip to content

Commit

Permalink
Merge pull request #2545 from niol/debug-use-after-free-fix
Browse files Browse the repository at this point in the history
fix use after free when DEBUG
  • Loading branch information
xrmx authored Jul 25, 2023
2 parents 73efb01 + 62c35ef commit b2f9ae3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ static void uwsgi_offload_close(struct uwsgi_thread *ut, struct uwsgi_offload_re
close(uor->pipe[0]);
}

free(uor);

#ifdef UWSGI_DEBUG
uwsgi_log("[offload] destroyed session %p\n", uor);
#endif

free(uor);
}

static void uwsgi_offload_append(struct uwsgi_thread *ut, struct uwsgi_offload_request *uor) {
Expand Down

0 comments on commit b2f9ae3

Please sign in to comment.