[asterisk-commits] rmudgett: branch 11 r421800 - in /branches/11: ./ res/res_musiconhold.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 21 17:03:24 CDT 2014


Author: rmudgett
Date: Thu Aug 21 17:03:22 2014
New Revision: 421800

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=421800
Log:
res_musiconhold.c: Remove obsolete REF_DEBUG code.

Remove unneeded code that writes to the wrong file location in an obsolete
format.
........

Merged revisions 421799 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/11/   (props changed)
    branches/11/res/res_musiconhold.c

Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/11/res/res_musiconhold.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/res/res_musiconhold.c?view=diff&rev=421800&r1=421799&r2=421800
==============================================================================
--- branches/11/res/res_musiconhold.c (original)
+++ branches/11/res/res_musiconhold.c Thu Aug 21 17:03:22 2014
@@ -238,11 +238,6 @@
 
 	if (dup) {
 		if (__ao2_ref_debug(dup, -1, (char *) tag, (char *) file, line, funcname) == 2) {
-			FILE *ref = fopen("/tmp/refs", "a");
-			if (ref) {
-				fprintf(ref, "%p =1   %s:%d:%s (%s) BAD ATTEMPT!\n", class, file, line, funcname, tag);
-				fclose(ref);
-			}
 			ast_log(LOG_WARNING, "Attempt to unref mohclass %p (%s) when only 1 ref remained, and class is still in a container! (at %s:%d (%s))\n",
 				class, class->name, file, line, funcname);
 		} else {




More information about the asterisk-commits mailing list