forked from pool/x3270
18 lines
338 B
Diff
18 lines
338 B
Diff
|
--- pr3287-3.3/telnet.c
|
||
|
+++ pr3287-3.3/telnet.c
|
||
|
@@ -308,8 +308,13 @@
|
||
|
cstate != CONNECTED_3270 && /* TN3270 */
|
||
|
cstate != NOT_CONNECTED) { /* gave up */
|
||
|
|
||
|
- if (net_input(s) < 0)
|
||
|
+ if (net_input(s) < 0) {
|
||
|
+ Free(netrbuf);
|
||
|
+ Free(ibuf);
|
||
|
+ netrbuf = NULL;
|
||
|
+ ibuf = NULL;
|
||
|
return -1;
|
||
|
+ }
|
||
|
}
|
||
|
|
||
|
/* Success. */
|