mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user