mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:51:41 +03:00
asyn-thread: drop free() on non-heap address
seen with mingw-w64 gcc 14.2.0 while playing with other modifications:
```
lib/asyn-thread.c: In function 'init_resolve_thread':
lib/asyn-thread.c:447:5: warning: 'free' called on pointer 'data' with nonzero offset 3264 [-Wfree-nonheap-object]
447 | free(td);
| ^~~~~~~~
```
Where `td` is:
```c
struct thread_data *td = &data->state.async.thdata;
```
Follow-up to d9fc64d3ab #16241
Closes #16734
This commit is contained in:
parent
ebce3f0c02
commit
6b143d9cc1
1 changed files with 0 additions and 1 deletions
|
|
@ -444,7 +444,6 @@ static bool init_resolve_thread(struct Curl_easy *data,
|
|||
td->start = Curl_now();
|
||||
|
||||
if(!init_thread_sync_data(td, hostname, port, hints)) {
|
||||
free(td);
|
||||
goto errno_exit;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue