r9023: 2.7.1
[clsql.git] / db-odbc / odbc-dbi.lisp
index 853d3fbca1fad267b7fa88ecec5fb773aefbf3ed..9ebbaad5bb1499bb03ebbc0c89cff882734c1405 100644 (file)
@@ -428,8 +428,9 @@ This makes the functions db-execute-command and db-query thread safe."
         (dotimes (col-nr count)
           (let ((data-ptr (aref column-data-ptrs col-nr))
                 (out-len-ptr (aref column-out-len-ptrs col-nr)))
-            (when data-ptr (uffi:free-foreign-object data-ptr)) ; we *did* allocate them
-            (when out-len-ptr (uffi:free-foreign-object out-len-ptr)))))
+           ;; free-statment unbind frees theses
+           #+ignore (when data-ptr (uffi:free-foreign-object data-ptr))
+           #+ignore (when out-len-ptr (uffi:free-foreign-object out-len-ptr)))))
       (cond ((null hstmt)
              nil)
             (drop-p