Skip to content

Commit 130e727

Browse files
niolxrmx
authored andcommitted
fix use after free when DEBUG
1 parent 93f879a commit 130e727

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/offload.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,11 @@ static void uwsgi_offload_close(struct uwsgi_thread *ut, struct uwsgi_offload_re
236236
close(uor->pipe[0]);
237237
}
238238

239-
free(uor);
240-
241239
#ifdef UWSGI_DEBUG
242240
uwsgi_log("[offload] destroyed session %p\n", uor);
243241
#endif
242+
243+
free(uor);
244244
}
245245

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

0 commit comments

Comments
 (0)