smb/telnet: do not free the protocol struct in *_done()

It is managed by the generic layer.

Reported-by: Trail of Bits

Closes #10112
This commit is contained in:
Daniel Stenberg 2022-12-19 08:38:37 +01:00
parent 9e71901634
commit 4f20188ac6
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 2 additions and 15 deletions

View file

@ -1248,9 +1248,6 @@ static CURLcode telnet_done(struct Curl_easy *data,
curl_slist_free_all(tn->telnet_vars);
tn->telnet_vars = NULL;
Curl_safefree(data->req.p.telnet);
return CURLE_OK;
}