From: Bruce Momjian Date: Sun, 11 Feb 2001 05:04:47 +0000 (+0000) Subject: More cleanup. X-Git-Tag: REL7_1~464 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82b1fd1e0d3d565a51cbc1f4f5c10d853b0965f0;p=postgresql More cleanup. --- diff --git a/src/interfaces/odbc/socket.c b/src/interfaces/odbc/socket.c index fbd8491e56..d062ba5693 100644 --- a/src/interfaces/odbc/socket.c +++ b/src/interfaces/odbc/socket.c @@ -91,8 +91,7 @@ SOCK_Destructor(SocketClass * self) free(self->buffer_in); if (self->buffer_out) - SOCK_put_n_char(self, (char *) &rv, 2); - free(self->buffer_out); + free(self->buffer_out); free(self); } @@ -257,6 +256,7 @@ SOCK_put_int(SocketClass * self, int value, short len) { case 2: rv = self->reverse ? value : htons((unsigned short) value); + SOCK_put_n_char(self, (char *) &rv, 2); return; case 4: