summaryrefslogtreecommitdiff
path: root/channels/chan_dahdi.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2009-05-28 15:35:23 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2009-05-28 15:35:23 +0000
commit98ce0e5b6c811ff8037e3267323f39a046c0badc (patch)
treeccd75c3d71febe30e9333c58f5acfa463b350934 /channels/chan_dahdi.c
parente37ee42e6c29a22fab370b109cbc2182b4ccd386 (diff)
Eliminate several needless checks and fix a few memory leaks
(closes issue #14833) Reported by: contactmayankjain Patches: all_changes.patch uploaded by contactmayankjain (license 740) slightly modified by me git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@197616 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r--channels/chan_dahdi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index b3fcac294..fb255956e 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -10183,8 +10183,6 @@ static struct dahdi_pvt *mkintf(int channel, const struct dahdi_chan_conf *conf,
if (!here && reloading != 1) {
if (!(tmp = ast_calloc(1, sizeof(*tmp)))) {
- if (tmp)
- free(tmp);
return NULL;
}
ast_mutex_init(&tmp->lock);