summaryrefslogtreecommitdiff
path: root/addons/chan_ooh323.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2018-04-24 18:54:36 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2018-04-24 18:54:36 -0500
commita9e45eb5c92a6bb8fdef8af1aaa38ca442d4af42 (patch)
treebb9e12bd59b3d2d5baba21a290a81d88f884856b /addons/chan_ooh323.c
parenta9c74fdc0462349bd9ae6f25ae72f071c95d1e76 (diff)
parent446320f1d4c6ba00b7aa4240488c64b007d2b8b6 (diff)
Merge "chan_ooh323: Fix cppcheck warnings"
Diffstat (limited to 'addons/chan_ooh323.c')
-rw-r--r--addons/chan_ooh323.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c
index ffdbf6721..24cc65c0f 100644
--- a/addons/chan_ooh323.c
+++ b/addons/chan_ooh323.c
@@ -5053,9 +5053,7 @@ struct ast_frame *ooh323_rtp_read(struct ast_channel *ast, struct ooh323_pvt *p)
ast_log(LOG_NOTICE, "Failed to async goto '%s' into fax of '%s'\n", ast_channel_name(p->owner),target_context);
}
p->faxdetected = 1;
- if (dfr) {
- ast_frfree(dfr);
- }
+ ast_frfree(dfr);
return &ast_null_frame;
}
}