mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-06 21:09:47 +00:00
Merge "res_pjsip: Fix leak on error in ast_sip_auth_vector_init." into 13
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user