mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-04 17:51:03 +00:00
[mod_verto] coverity CID 1294451 (Dereference before null check)
This commit is contained in:
parent
889f761df6
commit
8c4c3e3999
@ -4756,13 +4756,11 @@ static int start_jsock(verto_profile_t *profile, ks_socket_t sock, int family)
|
|||||||
|
|
||||||
error:
|
error:
|
||||||
|
|
||||||
if (jsock) {
|
|
||||||
if (jsock->client_socket != KS_SOCK_INVALID) {
|
if (jsock->client_socket != KS_SOCK_INVALID) {
|
||||||
close_socket(&jsock->client_socket);
|
close_socket(&jsock->client_socket);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_core_destroy_memory_pool(&pool);
|
switch_core_destroy_memory_pool(&pool);
|
||||||
}
|
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user