[svn-commits] russell: trunk r41650 - /trunk/channels/iax2-parser.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Thu Aug 31 14:50:07 MST 2006
Author: russell
Date: Thu Aug 31 16:50:07 2006
New Revision: 41650
URL: http://svn.digium.com/view/asterisk?rev=41650&view=rev
Log:
there is no need for __iax_frame_free ...
Modified:
trunk/channels/iax2-parser.c
Modified: trunk/channels/iax2-parser.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/iax2-parser.c?rev=41650&r1=41649&r2=41650&view=diff
==============================================================================
--- trunk/channels/iax2-parser.c (original)
+++ trunk/channels/iax2-parser.c Thu Aug 31 16:50:07 2006
@@ -973,7 +973,7 @@
return fr;
}
-static void __iax_frame_free(struct iax_frame *fr, int cache)
+void iax_frame_free(struct iax_frame *fr)
{
struct iax_frames *iax_frames;
@@ -988,10 +988,6 @@
}
fr->direction = 0;
ast_atomic_fetchadd_int(&frames, -1);
- if (!cache) {
- free(fr);
- return;
- }
if (!(iax_frames = ast_threadstorage_get(&frame_cache, sizeof(*iax_frames)))) {
free(fr);
@@ -1012,11 +1008,6 @@
free(frames);
}
-void iax_frame_free(struct iax_frame *fr)
-{
- __iax_frame_free(fr, 1);
-}
-
int iax_get_frames(void) { return frames; }
int iax_get_iframes(void) { return iframes; }
int iax_get_oframes(void) { return oframes; }
More information about the svn-commits
mailing list