summaryrefslogtreecommitdiff
path: root/res/res_musiconhold.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2014-08-21 22:09:24 +0000
committerRichard Mudgett <rmudgett@digium.com>2014-08-21 22:09:24 +0000
commitf8c4fc1121bfd619f6ebd1c50b5fac808d15183b (patch)
treebbd411f343efc827630c6caeaaa7c93c80fc642a /res/res_musiconhold.c
parent644e693645cad8c31c96defc3945532da7497fc8 (diff)
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 ........ Merged revisions 421800 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 421801 from http://svn.asterisk.org/svn/asterisk/branches/12 ........ Merged revisions 421802 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@421803 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_musiconhold.c')
-rw-r--r--res/res_musiconhold.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 32fda87bf..2ae56825f 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -214,11 +214,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 {