free the struct on done

This commit is contained in:
Daniel Stenberg 2001-03-05 14:01:13 +00:00
parent 5eba359b5d
commit 0cb4eba002

View File

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