diff options
author | Kevin Harwell <kharwell@digium.com> | 2015-01-23 15:12:41 +0000 |
---|---|---|
committer | Kevin Harwell <kharwell@digium.com> | 2015-01-23 15:12:41 +0000 |
commit | 630eea087d62c717cae2c42366e8a972b8ff022d (patch) | |
tree | b3883921814f906822443d95c30da5bd46eb9d55 /res/res_pjsip_mwi.c | |
parent | e23f07beb80a76160edec656d6509db5f1a2885a (diff) |
Investigate and fix memory leaks in Asterisk
Fixed memory leaks that were found in Asterisk.
ASTERISK-24693 #close
Reported by: Kevin Harwell
Review: https://reviewboard.asterisk.org/r/4347/
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@430999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip_mwi.c')
-rw-r--r-- | res/res_pjsip_mwi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_mwi.c b/res/res_pjsip_mwi.c index 8a6165991..9c275af46 100644 --- a/res/res_pjsip_mwi.c +++ b/res/res_pjsip_mwi.c @@ -658,7 +658,7 @@ static struct mwi_subscription *mwi_subscribe_all( static int mwi_new_subscribe(struct ast_sip_endpoint *endpoint, const char *resource) { - struct ast_sip_aor *aor; + RAII_VAR(struct ast_sip_aor *, aor, NULL, ao2_cleanup); if (ast_strlen_zero(resource)) { if (ast_sip_for_each_aor(endpoint->aors, mwi_validate_for_aor, endpoint)) { |