From c4c8e812b4ed3f50f4701169c4e302c7aeb8a548 Mon Sep 17 00:00:00 2001 From: Byron Nikolaidis Date: Mon, 25 Oct 1999 01:11:44 +0000 Subject: bug fix for large objects (free) --- src/interfaces/odbc/bind.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/interfaces/odbc/bind.c') diff --git a/src/interfaces/odbc/bind.c b/src/interfaces/odbc/bind.c index 285fabd75a..67811f3926 100644 --- a/src/interfaces/odbc/bind.c +++ b/src/interfaces/odbc/bind.c @@ -124,7 +124,8 @@ static char *func="SQLBindParameter"; } if (stmt->parameters[ipar].EXEC_buffer) { - free(stmt->parameters[ipar].EXEC_buffer); + if (stmt->parameters[ipar].SQLType != SQL_LONGVARBINARY) + free(stmt->parameters[ipar].EXEC_buffer); stmt->parameters[ipar].EXEC_buffer = NULL; } -- cgit v1.2.1