projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make memory management uniform: _everything_ now goes through the
[u/mdw/putty]
/
winnet.c
diff --git
a/winnet.c
b/winnet.c
index
e36d9e1
..
2be9233
100644
(file)
--- a/
winnet.c
+++ b/
winnet.c
@@
-163,7
+163,7
@@
void sk_close(Socket s) {
del234(sktree, s);
do_select(s->s, 0);
closesocket(s->s);
del234(sktree, s);
do_select(s->s, 0);
closesocket(s->s);
- free(s);
+
s
free(s);
}
char *winsock_error_string(int error) {
}
char *winsock_error_string(int error) {
@@
-258,7
+258,7
@@
void try_send(Socket s) {
if (s->head->bufpos >= s->head->buflen) {
struct buffer *tmp = s->head;
s->head = tmp->next;
if (s->head->bufpos >= s->head->buflen) {
struct buffer *tmp = s->head;
s->head = tmp->next;
- free(tmp);
+
s
free(tmp);
if (!s->head)
s->tail = NULL;
}
if (!s->head)
s->tail = NULL;
}
@@
-312,7
+312,7
@@
void sk_write_oob(Socket s, char *buf, int len) {
while (walk) {
struct buffer *tmp = walk;
walk = tmp->next;
while (walk) {
struct buffer *tmp = walk;
walk = tmp->next;
- free(tmp);
+
s
free(tmp);
}
}
s->head->next = NULL;
}
}
s->head->next = NULL;