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

This commit is contained in:
Jenkins2
2017-11-07 22:34:47 -06:00
committed by Gerrit Code Review

View File

@@ -508,6 +508,8 @@ int ast_sip_auth_vector_init(struct ast_sip_auth_vector *auths, const char *valu
goto failure; goto failure;
} }
if (AST_VECTOR_APPEND(auths, val)) { if (AST_VECTOR_APPEND(auths, val)) {
ast_free(val);
goto failure; goto failure;
} }
} }