Skip to content
Snippets Groups Projects
Commit 0036a007 authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "res_ari_channels: Fix reference leak in channel_state_invalid."

parents df18445b f2175c5a
No related branches found
No related tags found
No related merge requests found
......@@ -99,9 +99,13 @@ static int channel_state_invalid(struct stasis_app_control *control,
|| snapshot->state == AST_STATE_RINGING) {
ast_ari_response_error(response, 412, "Precondition Failed",
"Channel in invalid state");
ao2_ref(snapshot, -1);
return -1;
}
ao2_ref(snapshot, -1);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment