aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-03-05 14:01:13 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-03-05 14:01:13 +0000
commit0cb4eba0023684cc588546f09251c96a26c1dcde (patch)
tree067c8568c47fa0272593e96a9e110fa138512b4b
parent5eba359b5d1b6fb74710158298f8a20ee748a35e (diff)
free the struct on done
-rw-r--r--lib/telnet.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index c5c5faafe..e08a9c938 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -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;
}