Merge "res_pjproject.c: Fix ast_strdup() alloc failure." into 13

certified/13.21
Jenkins2 8 years ago committed by Gerrit Code Review
commit 936a85419e

@ -236,7 +236,7 @@ static void capture_buildopts_cb(int level, const char *data, int len)
}
dup = ast_strdup(ast_skip_blanks(data));
if (AST_VECTOR_ADD_SORTED(&buildopts, dup, strcmp)) {
if (dup && AST_VECTOR_ADD_SORTED(&buildopts, dup, strcmp)) {
ast_free(dup);
}
}

Loading…
Cancel
Save