From 6f9257db921d8f65627aea6593d614fb717d8114 Mon Sep 17 00:00:00 2001
From: Richard Mudgett <rmudgett@digium.com>
Date: Thu, 21 Aug 2014 22:03:22 +0000
Subject: [PATCH] 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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@421800 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 res/res_musiconhold.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 7daf4db15e..7b66b522e1 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -238,11 +238,6 @@ static struct mohclass *_mohclass_unref(struct mohclass *class, const char *tag,
 
 	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 {
-- 
GitLab