]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
if we're going to decrement the frame count when we free a frame, we should inrement...
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 4 Jan 2007 21:06:02 +0000 (21:06 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 4 Jan 2007 21:06:02 +0000 (21:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@49523 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/iax2-parser.c

index d06775128bf9bc22d20dc35d3ec69fd21ac42d0e..319d4caaa96405d9818794fcc5369d1b1eea3871 100644 (file)
@@ -976,6 +976,8 @@ struct iax_frame *iax_frame_new(int direction, int datalen, unsigned int cacheab
        else
                ast_atomic_fetchadd_int(&oframes, 1);
        
+       ast_atomic_fetchadd_int(&frames, 1);
+
        return fr;
 }