[mod_portaudio] coverity CID 1024263 (Dereference before null check)

This commit is contained in:
Dragos Oancea 2023-05-31 15:58:19 +03:00 committed by Andrey Volk
parent 3ebeee61fb
commit 716a9febc1
1 changed files with 3 additions and 3 deletions

View File

@ -1296,9 +1296,9 @@ error:
}
switch_mutex_unlock(endpoint->mutex);
}
if (new_session && *new_session) {
switch_core_session_destroy(new_session);
}
return retcause;
}