summaryrefslogtreecommitdiff
path: root/src/http_decoder/http_decoder.c
diff options
context:
space:
mode:
authorliuwentan <[email protected]>2023-12-29 11:59:07 +0800
committerliuwentan <[email protected]>2023-12-29 11:59:07 +0800
commit21d1d573ad84bf782f288f25cda25fe0f0aa2e15 (patch)
treeb5798418df182edb0667d2aeadbae9fbbbc4996e /src/http_decoder/http_decoder.c
parentc131eeda82a32b0db6f4dc56adcc5e5d6815c9fb (diff)
[HTTP_DECODER]memory leak bugfix
Diffstat (limited to 'src/http_decoder/http_decoder.c')
-rw-r--r--src/http_decoder/http_decoder.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http_decoder/http_decoder.c b/src/http_decoder/http_decoder.c
index c2d1c55..1bfbcad 100644
--- a/src/http_decoder/http_decoder.c
+++ b/src/http_decoder/http_decoder.c
@@ -232,6 +232,8 @@ static void http_event_handler(enum http_event event,
case HTTP_EVENT_RES_BODY_END:
break;
case HTTP_EVENT_RES_END:
+ http_decoder_result_queue_inc_res_index(queue);
+ http_decoder_result_queue_gc(queue, queue->res_index);
break;
default:
assert(0);