res_pjsip: Fix leak on error in ast_sip_auth_vector_init.

Change-Id: Ib0fc7a18f3135ca8990c3984c9e15f6d26e556e8
pull/9/head
Corey Farrell 8 years ago
parent 637b37fb98
commit 29205e7adc

@ -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;
}
}

Loading…
Cancel
Save