After updating from CVS I start having some memory leaks on my smsbox.
allocations were reported to be made from octstr_split_words and
http_header_find_first.

Knowing what my application was requesting kannel to do I tracked them
down in three points. 
But I am not sure this is all.

Anyway, the points where my problems spotted and fixed were

in gw/smsbox.c
====================
in smsbox_req_handle:
some calls to list_destroy, where NULL must be replaced with
octstr_destroy_item as the list_item_destructor_t parameter
_________________________
in smsbox_sendsms_post:
A missing octstr_destroy(dlr_url); at the end.
(actually this must be missing for a long time but I didn't report it
when I first encountered it).


in gwlib/http.c
=================
in client_is_persistent the retrieved header value is never destroied.


A sumarizing diff is atteched.

Attachment: memory_leaks.diff
Description: Binary data

Reply via email to