mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merge "res_fax: Fix reference leak in fax_v21_session_new." into 13
This commit is contained in:
@@ -2846,11 +2846,8 @@ static struct ast_fax_session *fax_v21_session_new (struct ast_channel *chan) {
|
||||
}
|
||||
|
||||
v21_details->caps = AST_FAX_TECH_V21_DETECT;
|
||||
if (!(v21_session = fax_session_new(v21_details, chan, NULL, NULL))) {
|
||||
ao2_ref(v21_details, -1);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
v21_session = fax_session_new(v21_details, chan, NULL, NULL);
|
||||
ao2_ref(v21_details, -1);
|
||||
return v21_session;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user