summaryrefslogtreecommitdiff
path: root/main/http.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-08-04 16:34:04 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-08-04 16:34:04 +0000
commitaca394bf0cea646cc78c5e0e8a72cc5d1f21452b (patch)
treece28b1d11d703a473e36dcd37364126ff39daaed /main/http.c
parentb73b6b53cd57417faa73a78cfd20748092b0a5bd (diff)
HTTP module memory leaks
(closes issue #13230) Reported by: eliel Patches: res_http_post_leak.patch uploaded by eliel (license 64) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@135476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/http.c')
-rw-r--r--main/http.c6
1 files changed, 6 insertions, 0 deletions
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);