diff --git a/res/res_fax.c b/res/res_fax.c index 247251c8b2..aef6360ff0 100644 --- a/res/res_fax.c +++ b/res/res_fax.c @@ -1281,6 +1281,10 @@ static struct ast_fax_session *fax_session_new(struct ast_fax_session_details *d } ast_debug(4, "Requesting a new FAX session from '%s'.\n", faxmod->tech->description); ast_module_ref(faxmod->tech->module); + if (reserved) { + /* Balance module ref from reserved session */ + ast_module_unref(reserved->tech->module); + } s->tech = faxmod->tech; break; }