diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-04 21:06:02 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-04 21:06:02 +0000 |
commit | 7f40bb2d060a18cafc199a54ea1b8726ca4f55b0 (patch) | |
tree | 9fdfe8746af90b6f9c0a51135f052c1c78682be3 /channels/iax2-parser.c | |
parent | 71de4a005d4465c264b1365662a703aa668d1e36 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@49523 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/iax2-parser.c')
-rw-r--r-- | channels/iax2-parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c index d06775128..319d4caaa 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; } |