projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5eba359
)
free the struct on done
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 5 Mar 2001 14:01:13 +0000
(14:01 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 5 Mar 2001 14:01:13 +0000
(14:01 +0000)
lib/telnet.c
patch
|
blob
|
history
diff --git
a/lib/telnet.c
b/lib/telnet.c
index
c5c5faa
..
e08a9c9
100644
(file)
--- 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;
}