diff options
author | Alexander Anikin <may213@yandex.ru> | 2018-04-18 13:32:34 +0300 |
---|---|---|
committer | Alexander Anikin <may213@yandex.ru> | 2018-04-18 13:38:09 +0300 |
commit | 446320f1d4c6ba00b7aa4240488c64b007d2b8b6 (patch) | |
tree | 7abd3d4feeed51f0a9b4377ba59046f21db07622 /addons/chan_ooh323.c | |
parent | 38dae51b788cd7f9f69c88573d6ce769c80f07f0 (diff) |
chan_ooh323: Fix cppcheck warnings
Fix cppcheck warnings about redundant conditions and possible
null pointer usage
ASTERISK-27793 #close
Reported by: Ilya Shipitsin
Tested by: Ilya Shipitsin
Change-Id: I0b31933b062a23331dbac9a82b8bcfe345f406f6
Diffstat (limited to 'addons/chan_ooh323.c')
-rw-r--r-- | addons/chan_ooh323.c | 4 |
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; } } |