mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
res_pjsip: Fix leak on error in ast_sip_auth_vector_init.
Change-Id: Ib0fc7a18f3135ca8990c3984c9e15f6d26e556e8
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