[Mod-security-developers] 回复: help me!pls
Brought to you by:
victorhora,
zimmerletw
From: 蕴涵 <252...@qq...> - 2014-07-22 04:59:53
|
hi Costa: I have a rough read apr memory pool source code,I have know modsecurity how to handle memory management. I try to modfied main.cpp(standalone/man.cpp) in my Multi thread program that is similar to apache's fuction! but my program have serious memory leak, I'm sure use apr_pool_destroy(r->connection->pool) function when per session need free! I have one question.does modsecurity support multi thread? br., jarwin ------------------ 原始邮件 ------------------ 发件人: "Felipe Costa";<FC...@tr...>; 发送时间: 2014年7月8日(星期二) 上午7:18 收件人: "mod...@li..."<mod...@li...>; 主题: Re: [Mod-security-developers] help me!pls Hi Jarwin, ModSecurity uses this Apr Memory Pool to handle the memory management, for further information: - http://en.wikipedia.org/wiki/Apache_Portable_Runtime - http://www.apachetutor.org/dev/pools Br., Felipe "Zimmerle" Costa Security Researcher, SpiderLabs Trustwave | SMART SECURITY ON DEMAND www.trustwave.com From: 蕴涵 <252...@qq...> Reply-To: "mod...@li..." <mod...@li...> Date: Tuesday, July 1, 2014 12:47 PM To: mod-security-developers <mod...@li...> Subject: [Mod-security-developers] help me!pls hi: I ran into a problem when read modsecurity-2.7.7 source code,when http request came,modsecurity will executive function(create_tx_context()),In this fuction call apr_allocator_create(&allocator),but I cann't find any apr_allocator_free() fuction or apr_allocator_destroy() function to release allocator memory,The program will not cause memory leaks? if not,when does modsecurity release memory? I can not sleep wellbecause of this puzzle problem!pls reply me!! Thanks jarwin This transmission may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is strictly prohibited. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. |