aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-31 21:50:07 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-31 21:50:07 +0000
commite713821850a9e7b5657259340113a68819fe0e24 (patch)
tree6ba98b9854939dc79ba8215be0d09fcb609bd6d5 /channels
parent2ea46c1628e343c37653a16833545f38ebe2a1fe (diff)
there is no need for __iax_frame_free ...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41650 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/iax2-parser.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c
index 018619439..0a524e253 100644
--- a/channels/iax2-parser.c
+++ b/channels/iax2-parser.c
@@ -973,7 +973,7 @@ struct iax_frame *iax_frame_new(int direction, int datalen)
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 @@ static void __iax_frame_free(struct iax_frame *fr, int cache)
}
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 @@ static void frame_cache_cleanup(void *data)
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; }