summaryrefslogtreecommitdiff
path: root/res/res_musiconhold.c
diff options
context:
space:
mode:
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 {