You mean, if I add headers using axis2_options_set_http_headers(options, env, http_header_list);
I shouldn't have to free http_header_list?

That causes memory leaks in my application...

Hatim,
axis2_options_set_http_headers adds the header list as a property and this list gets freed only when the client options get freed. So no wonder it causes a memory leak unless you free the header list just after calling axis2_svc_client_send_receive. Even in the implementation that I have proposed for custom HTTP headers, the caller is responsible for freeing the custom headers, all the custom headers get freed when the client options get freed, though.

Danushka

--
Danushka Menikkumbura
Technical Lead, WSO2 Inc.

blog : http://danushka-menikkumbura.blogspot.com/

http://wso2.com/ - The Open Source SOA Company



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to