From: Richard Mudgett Date: Thu, 21 Aug 2014 22:01:38 +0000 (+0000) Subject: res_musiconhold.c: Remove obsolete REF_DEBUG code. X-Git-Tag: 1.8.31.0-rc1~17 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f565f9a708a9de84c12f458a61560274225964fd;p=thirdparty%2Fasterisk.git res_musiconhold.c: Remove obsolete REF_DEBUG code. Remove unneeded code that writes to the wrong file location in an obsolete format. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@421799 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index f64bd1e1a7..9b29ce9b1b 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -234,11 +234,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 {