memory leak of ecap modules
Hi Guys:
I encounter with the Squid memory usage grow constantly, but when I disable the ecap module the memory just stop increasing, so I infer that the ecap module may have memory leak ?
But, while I come through the whole code, just found that I use the get request url with pointer and client in pointer, but I don't see any memory leak problem.
"clientIP" need free ? or requestLine need free ? or uri need free ?
1. Get the client ip address.
libecap:
2. get the request url.
typedef libecap:
CLRLP requestLine;
libecap::Area uri;
if (requestLine = dynamic_
uri = requestLine->uri();
} else {
if (requestLine = CLRLP(&
uri = requestLine->uri();
}
Or, can you provide me some method to detect where could be the memory leak happened ?
Thanks in advance.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- eCAP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- qianguozheng
- Solved:
- Last query:
- Last reply: