From d328d088cf7124e397c150aa56e08faac5d6802c Mon Sep 17 00:00:00 2001 From: tilghman Date: Mon, 4 Aug 2008 16:34:04 +0000 Subject: HTTP module memory leaks (closes issue #13230) Reported by: eliel Patches: res_http_post_leak.patch uploaded by eliel (license 64) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135476 f38db490-d61c-443f-a65b-d21fe96a405b --- main/http.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main/http.c') diff --git a/main/http.c b/main/http.c index bb6ae6121..d08b17fa4 100644 --- a/main/http.c +++ b/main/http.c @@ -389,6 +389,12 @@ void ast_http_uri_unlink_all_with_key(const char *key) if (!strcmp(urih->key, key)) { AST_RWLIST_REMOVE_CURRENT(entry); } + if (urih->dmallocd) { + ast_free(urih->data); + } + if (urih->mallocd) { + ast_free(urih); + } } AST_RWLIST_TRAVERSE_SAFE_END AST_RWLIST_UNLOCK(&uris); -- cgit v1.2.3