mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-12 04:48:51 +00:00
Merge "res_pjsip: Fix leak on error in ast_sip_auth_vector_init." into 15
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user