[Freeswitch-svn] [commit] r7589 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN anthm at freeswitch.org
Mon Feb 11 16:20:43 EST 2008


Author: anthm
Date: Mon Feb 11 16:20:43 2008
New Revision: 7589

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c

Log:
tweak

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Mon Feb 11 16:20:43 2008
@@ -1382,6 +1382,8 @@
 	char *domain = NULL;
 	char *profile_name = NULL;
 	char *p;
+	sofia_profile_t *profile = NULL;
+
 
 	if (!cmd) {
 		stream->write_function(stream, "%s", "");
@@ -1409,7 +1411,6 @@
 
 	if (user && profile_name) {
 		char *sql;
-		sofia_profile_t *profile;
 		
 		if (!(profile = sofia_glue_find_profile(profile_name))) {
 			profile_name = domain;
@@ -1449,6 +1450,11 @@
 
 end:
 	switch_safe_free(data);
+
+	if (profile) {
+		sofia_glue_release_profile(profile);
+	}
+
 	return SWITCH_STATUS_SUCCESS;
 }
 



More information about the Freeswitch-svn mailing list