Commit 82b1fd1e authored by Bruce Momjian's avatar Bruce Momjian

More cleanup.

parent 9d244ddb
...@@ -91,8 +91,7 @@ SOCK_Destructor(SocketClass * self) ...@@ -91,8 +91,7 @@ SOCK_Destructor(SocketClass * self)
free(self->buffer_in); free(self->buffer_in);
if (self->buffer_out) if (self->buffer_out)
SOCK_put_n_char(self, (char *) &rv, 2); free(self->buffer_out);
free(self->buffer_out);
free(self); free(self);
} }
...@@ -257,6 +256,7 @@ SOCK_put_int(SocketClass * self, int value, short len) ...@@ -257,6 +256,7 @@ SOCK_put_int(SocketClass * self, int value, short len)
{ {
case 2: case 2:
rv = self->reverse ? value : htons((unsigned short) value); rv = self->reverse ? value : htons((unsigned short) value);
SOCK_put_n_char(self, (char *) &rv, 2);
return; return;
case 4: case 4:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment