Remove direct freeing of sessions

Sessions are now always freed by releasing the last reference to it.
This commit is contained in:
Markus Makela
2016-12-02 14:39:32 +02:00
parent b2e11d41d5
commit a4bc575353
5 changed files with 36 additions and 38 deletions

View File

@ -277,7 +277,7 @@ static bool process_argument(modulecmd_arg_type_t *type, const void* value,
break;
case MODULECMD_ARG_SESSION:
if ((arg->value.session = session_get_ref(atoi(value))))
if ((arg->value.session = session_get_by_id(atoi(value))))
{
arg->type.type = MODULECMD_ARG_SESSION;
}