Merge "res_pjproject.c: Fix ast_strdup() alloc failure."
This commit is contained in:
commit
698ff5b4cb
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ static void capture_buildopts_cb(int level, const char *data, int len)
|
||||||
}
|
}
|
||||||
|
|
||||||
dup = ast_strdup(ast_skip_blanks(data));
|
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);
|
ast_free(dup);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue