diff options
author | Richard Mudgett <rmudgett@digium.com> | 2016-04-13 13:50:04 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-04-22 15:45:47 -0500 |
commit | a63656b41975a4f77c8d953b5dc7f966332892f4 (patch) | |
tree | 74d852cbee1a1b01c2205e68f767e8970e6998bf /main/core_unreal.c | |
parent | 71dfa355403e41850fd7c4cb4228626e5d9476b9 (diff) |
Bridge system: Fix memory leaks and double frees on impart failure.
You cannot reference the passed in features struct after calling
ast_bridge_impart(). Even if the call fails.
Change-Id: I902b88ba0d5d39520e670fb635078a367268ea21
Diffstat (limited to 'main/core_unreal.c')
-rw-r--r-- | main/core_unreal.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/main/core_unreal.c b/main/core_unreal.c index 377abd1ff..28886b635 100644 --- a/main/core_unreal.c +++ b/main/core_unreal.c @@ -805,7 +805,6 @@ int ast_unreal_channel_push_to_bridge(struct ast_channel *ast, struct ast_bridge /* Impart the semi2 channel into the bridge */ if (ast_bridge_impart(bridge, chan, NULL, features, AST_BRIDGE_IMPART_CHAN_INDEPENDENT)) { - ast_bridge_features_destroy(features); ast_channel_unref(chan); return -1; } |