Explorar o código

* Fix from Ludo Brands to properly free parameters in deallocated cursors. Mantis #21608

git-svn-id: trunk@20676 -
marco %!s(int64=13) %!d(string=hai) anos
pai
achega
fd234c7e41
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      packages/fcl-db/src/sqldb/oracle/oracleconnection.pp

+ 2 - 0
packages/fcl-db/src/sqldb/oracle/oracleconnection.pp

@@ -473,6 +473,8 @@ begin
     begin
     if Length(FieldBuffers) > 0 then
       for tel := 0 to high(FieldBuffers) do freemem(FieldBuffers[tel].buffer);
+    if Length(ParamBuffers) > 0 then
+      for tel := 0 to high(ParamBuffers) do freemem(ParamBuffers[tel].buffer);
     end;
   FreeAndNil(cursor);
 end;