mirror of
https://github.com/curl/curl.git
synced 2026-06-06 05:14:15 +03:00
free the struct on done
This commit is contained in:
parent
5eba359b5d
commit
0cb4eba002
1 changed files with 4 additions and 0 deletions
|
|
@ -1017,6 +1017,10 @@ CURLcode Curl_telnet_done(struct connectdata *conn)
|
|||
{
|
||||
struct TELNET *tn = (struct TELNET *)conn->proto.telnet;
|
||||
curl_slist_free_all(tn->telnet_vars);
|
||||
|
||||
free(conn->proto.telnet);
|
||||
conn->proto.telnet = NULL;
|
||||
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue