[asterisk-commits] marquis: branch group/pinana-publish-1.4 r287465 - /team/group/pinana-publish...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Sep 18 17:22:51 CDT 2010


Author: marquis
Date: Sat Sep 18 17:22:40 2010
New Revision: 287465

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=287465
Log:
Call ast_config_destroy on the correct ast_config pointer.

Modified:
    team/group/pinana-publish-1.4/channels/chan_sip.c

Modified: team/group/pinana-publish-1.4/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pinana-publish-1.4/channels/chan_sip.c?view=diff&rev=287465&r1=287464&r2=287465
==============================================================================
--- team/group/pinana-publish-1.4/channels/chan_sip.c (original)
+++ team/group/pinana-publish-1.4/channels/chan_sip.c Sat Sep 18 17:22:40 2010
@@ -235,6 +235,7 @@
 
 static const char config[] = "sip.conf";
 static const char notify_config[] = "sip_notify.conf";
+static const char presence_config[] = "sip-presence.conf";
 
 static const int DEFAULT_PUBLISH_EXPIRES = 3600;
 
@@ -19531,7 +19532,7 @@
 	pcfg = ast_config_load("sip-presence.conf");
 	if (pcfg) {
 		int presence_result = presence_load_config(pcfg);
-		ast_config_destroy(ucfg);
+		ast_config_destroy(pcfg);
 		/* XXX Let's determine later what to do with the result here */
 	}
 




More information about the asterisk-commits mailing list