Merge "res_pjsip: Fix leak on error in ast_sip_auth_vector_init." into 13

This commit is contained in:
Jenkins2
2017-11-07 17:38:38 -06:00
committed by Gerrit Code Review

View File

@@ -510,6 +510,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;
}
}