From: Kevin P. Fleming Date: Thu, 4 Jan 2007 21:06:02 +0000 (+0000) Subject: if we're going to decrement the frame count when we free a frame, we should inrement... X-Git-Tag: 1.4.1~333 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b1817c0d124242324fc781c4d9827deee08b59d;p=thirdparty%2Fasterisk.git if we're going to decrement the frame count when we free a frame, we should inrement it when we create one :-) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@49523 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c index d06775128b..319d4caaa9 100644 --- a/channels/iax2-parser.c +++ b/channels/iax2-parser.c @@ -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; }