diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-14 22:42:17 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-10-14 22:42:17 +0000 |
commit | 89864095c8d4436d98f75d4a1c338b3c96fede1f (patch) | |
tree | eb21c5f9de5ae6021204bac80e1e8380749c999e /channels | |
parent | 04b34fd8e132320704f5f7daebba3948d93b2a3d (diff) |
Merged revisions 149199 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r149199 | tilghman | 2008-10-14 17:38:06 -0500 (Tue, 14 Oct 2008) | 8 lines
Add additional memory debugging to several core APIs, and fix several memory
leaks found with these changes.
(Closes issue #13505, closes issue #13543)
Reported by: mav3rick, triccyx
Patches:
20081001__bug13505.diff.txt uploaded by Corydon76 (license 14)
Tested by: mav3rick, triccyx
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@149202 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d09742f63..59d207fbf 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -21325,6 +21325,12 @@ static int reload_config(enum channelreloadreason reason) } /* Reset certificate handling for TLS sessions */ + if (reason != CHANNEL_MODULE_LOAD) { + ast_free(default_tls_cfg.certfile); + ast_free(default_tls_cfg.cipher); + ast_free(default_tls_cfg.cafile); + ast_free(default_tls_cfg.capath); + } default_tls_cfg.certfile = ast_strdup(AST_CERTFILE); /*XXX Not sure if this is useful */ default_tls_cfg.cipher = ast_strdup(""); default_tls_cfg.cafile = ast_strdup(""); |