[asterisk-commits] mmichelson: branch mmichelson/rls-config r416799 - /team/mmichelson/rls-confi...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 19 15:57:11 CDT 2014
Author: mmichelson
Date: Thu Jun 19 15:57:07 2014
New Revision: 416799
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=416799
Log:
Fix memory leaks pointed out by Kevin.
Modified:
team/mmichelson/rls-config/res/res_pjsip_pubsub.c
Modified: team/mmichelson/rls-config/res/res_pjsip_pubsub.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/rls-config/res/res_pjsip_pubsub.c?view=diff&rev=416799&r1=416798&r2=416799
==============================================================================
--- team/mmichelson/rls-config/res/res_pjsip_pubsub.c (original)
+++ team/mmichelson/rls-config/res/res_pjsip_pubsub.c Thu Jun 19 15:57:07 2014
@@ -1908,6 +1908,7 @@
}
if (ast_sip_sorcery_object_to_ami(list, &buf)) {
+ ast_free(buf);
return CMP_STOP;
}
astman_append(ami->s, "%s\r\n", ast_str_buffer(buf));
@@ -2066,6 +2067,7 @@
/* Chop off trailing comma */
ast_str_truncate(str, -1);
*buf = ast_strdup(ast_str_buffer(str));
+ ast_free(str);
return 0;
}
More information about the asterisk-commits
mailing list