From 82b1fd1e0d3d565a51cbc1f4f5c10d853b0965f0 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 11 Feb 2001 05:04:47 +0000 Subject: [PATCH] More cleanup. --- src/interfaces/odbc/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.40.0