Merge pull request #2104 from dragos-oancea/cov-mod_portaudio

[mod_portaudio] coverity CID 1024263 (Dereference before null check)
This commit is contained in:
Andrey Volk 2023-06-12 17:03:16 +03:00 committed by GitHub
commit 9eda0c41eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}
switch_core_session_destroy(new_session);
return retcause;
}