mirror of
https://github.com/curl/curl.git
synced 2026-05-08 12:47:28 +03:00
parent
472369f589
commit
f236595ecc
1 changed files with 6 additions and 1 deletions
|
|
@ -264,7 +264,12 @@ int init_thread_sync_data(struct thread_data *td,
|
|||
return 1;
|
||||
|
||||
err_exit:
|
||||
/* Memory allocation failed */
|
||||
#ifndef CURL_DISABLE_SOCKETPAIR
|
||||
if(tsd->sock_pair[0] != CURL_SOCKET_BAD) {
|
||||
sclose(tsd->sock_pair[0]);
|
||||
tsd->sock_pair[0] = CURL_SOCKET_BAD;
|
||||
}
|
||||
#endif
|
||||
destroy_thread_sync_data(tsd);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue