Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2966dd6

Browse files
AirisXFelipe Zimmerle
authored and
Felipe Zimmerle
committed
Fixed memory leak
1 parent 4582a36 commit 2966dd6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/ngx_http_modsecurity_module.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,9 +651,11 @@ ngx_http_modsecurity_config_cleanup(void *data)
651651

652652
old_pool = ngx_http_modsecurity_pcre_malloc_init(NULL);
653653
msc_rules_cleanup(t->rules_set);
654+
msc_cleanup(t->modsec);
654655
ngx_http_modsecurity_pcre_malloc_done(old_pool);
655656

656657
t->rules_set = NULL;
658+
t->modsec = NULL;
657659
}
658660

659661

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /