Skip to content

Memory leak when preparing Execute Block which uses domains [CORE4145] #4472

@firebird-automations

Description

@firebird-automations

Submitted by: prenosil (prenosil)

Whenever you prepare any of these statements
EXECUTE BLOCK (A RDB$FILE_NAME=?) AS BEGIN END
EXECUTE BLOCK AS DECLARE A RDB$FILE_NAME; BEGIN END
EXECUTE BLOCK AS DECLARE A INTEGER; DECLARE B VARCHAR(255); BEGIN B=CAST(A AS RDB$FILE_NAME); END
you will notice memory leak (e.g. in Windows Task Manager).
(in ISQL it is enough to "execute" the statements with SET PLANONLY ON)

The same statements with type names instead of domain names are o.k., e.g.
EXECUTE BLOCK (A INTEGER=?) AS BEGIN END

Commits: c62e9cf 0b51caa FirebirdSQL/fbt-repository@3d4420a FirebirdSQL/fbt-repository@eaeb34e

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions