aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_fax.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-09 18:06:30 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-02-09 18:06:30 +0000
commitdd12cdbb0ea67ac0965c6e7cf6d985082e72f101 (patch)
tree712ed803e85628ede2cd6d1aaf8cba4daa027f58 /apps/app_fax.c
parent2d98c6335290b5c2c81a0de99387ec3ce394480c (diff)
Ensure frames are only freed once.
(closes issue #16361) Reported by: vlad Patches: 20100208__issue16361.diff.txt uploaded by tilghman (license 14) Tested by: kenny, bloodoff, misaksen git-svn-id: http://svn.digium.com/svn/asterisk/trunk@245729 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_fax.c')
-rw-r--r--apps/app_fax.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_fax.c b/apps/app_fax.c
index ede204437..a5afe87dd 100644
--- a/apps/app_fax.c
+++ b/apps/app_fax.c
@@ -559,6 +559,7 @@ static int transmit_audio(fax_session *s)
}
ast_frfree(inf);
+ inf = NULL;
}
ast_debug(1, "Loop finished, res=%d\n", res);
@@ -698,6 +699,7 @@ static int transmit_t38(fax_session *s)
}
ast_frfree(inf);
+ inf = NULL;
}
ast_debug(1, "Loop finished, res=%d\n", res);