diff options
author | Jonathan Rose <jrose@digium.com> | 2013-10-23 20:10:30 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2013-10-23 20:10:30 +0000 |
commit | beb5cdbef54908cc1564539f9cfb8852b530f2bc (patch) | |
tree | b996e266a664ff749c2c8c36269934c46216109f /channels/sip/reqresp_parser.c | |
parent | d7bac6cf4b981d7e393902227497b51fb47f671e (diff) |
memory leaks: Memory leak cleanup patch by Corey Farrell (first set)
(issue ASTERSIK-22467)
Reported by: Corey Farrell
Patches:
chan_sip-parse_contact_header_test-free-contacts.patch uploaded by coreyfarrell (license 5909)
cli-filename-completion-leak.patch uploaded by coreyfarrell (license 5909)
func_math.patch uploaded by corefarrell (license 5909)
main-test-cleanup.patch uploaded by coreyfarrell (license 5909)
test_dlinklists.patch uploaded by coreyfarrell (license 5909)
........
Merged revisions 401660 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 401661 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 401662 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@401663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/sip/reqresp_parser.c')
-rw-r--r-- | channels/sip/reqresp_parser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/sip/reqresp_parser.c b/channels/sip/reqresp_parser.c index ac986aa59..7d4445784 100644 --- a/channels/sip/reqresp_parser.c +++ b/channels/sip/reqresp_parser.c @@ -1562,6 +1562,10 @@ AST_TEST_DEFINE(parse_contact_header_test) contactptr = AST_LIST_NEXT(contactptr,list); } + + while ((contactptr = AST_LIST_REMOVE_HEAD(contactlistptr,list))) { + ast_free(contactptr); + } } } |