Skip to content
Snippets Groups Projects
Commit 13ffdfd9 authored by Jenkins2's avatar Jenkins2 Committed by Gerrit Code Review
Browse files

Merge "res_stasis_playback: Check for failure to append vector."

parents d6213397 4016884e
Branches
Tags
No related merge requests found
......@@ -497,7 +497,11 @@ struct stasis_app_playback *stasis_app_control_play_uri(
/* safe */
strcpy(media_uri, media[i]);
AST_VECTOR_APPEND(&playback->medias, media_uri);
if (AST_VECTOR_APPEND(&playback->medias, media_uri)) {
ao2_ref(playback, -1);
ast_free(media_uri);
return NULL;
}
}
if (skipms == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment