Skip to content

Commit

Permalink
fix use after free when DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
niol committed Jul 25, 2023
1 parent 73efb01 commit 62c35ef
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 62c35ef

Please sign in to comment.