Skip to content
Snippets Groups Projects
Commit 29205e7a authored by Corey Farrell's avatar Corey Farrell
Browse files

res_pjsip: Fix leak on error in ast_sip_auth_vector_init.

Change-Id: Ib0fc7a18f3135ca8990c3984c9e15f6d26e556e8
parent 637b37fb
No related branches found
No related tags found
No related merge requests found
......@@ -508,6 +508,8 @@ int ast_sip_auth_vector_init(struct ast_sip_auth_vector *auths, const char *valu
goto failure;
}
if (AST_VECTOR_APPEND(auths, val)) {
ast_free(val);
goto failure;
}
}
......
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