Skip to content
Snippets Groups Projects
Commit 0cb4eba0 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

free the struct on done

parent 5eba359b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment