List:Commits« Previous MessageNext Message »
From:jbalint Date:December 17 2007 10:06am
Subject:Connector/ODBC 3.51 commit: r958 - branches/guffert/driver
View as plain text  
Modified:
   branches/guffert/driver/handle.c
Log:
Fix error handling on allocation error


Modified: branches/guffert/driver/handle.c
===================================================================
--- branches/guffert/driver/handle.c	2007-12-14 21:31:20 UTC (rev 957)
+++ branches/guffert/driver/handle.c	2007-12-17 09:06:49 UTC (rev 958)
@@ -326,14 +326,10 @@
 
     return SQL_SUCCESS;
 error:
-    if (stmt->ard)
-      my_free((char *)stmt->ard, MYF(0));
-    if (stmt->ard)
-      my_free((char *)stmt->ard, MYF(0));
-    if (stmt->ard)
-      my_free((char *)stmt->ard, MYF(0));
-    if (stmt->ard)
-      my_free((char *)stmt->ard, MYF(0));
+	x_free(stmt->ard);
+	x_free(stmt->ird);
+	x_free(stmt->apd);
+	x_free(stmt->ipd);
     return set_dbc_error(dbc, "HY001", "Memory allocation error", MYERR_S1001);
 }
 

Thread
Connector/ODBC 3.51 commit: r958 - branches/guffert/driverjbalint17 Dec