]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_musiconhold.c: Remove obsolete REF_DEBUG code.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 21 Aug 2014 22:05:18 +0000 (22:05 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 21 Aug 2014 22:05:18 +0000 (22:05 +0000)
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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@421801 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_musiconhold.c

index 82c594874e0544351010b7e58e6d26750a537f2d..cf2e5dbfb8661e743acfbf68470da8d8f259efc3 100644 (file)
@@ -246,11 +246,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 {