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:
Viktor Szakats 2025-03-15 02:39:05 +01:00
parent ebce3f0c02
commit 6b143d9cc1
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -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;
}