Skip to content

False positive: Dynamic object leak #1170

@stefandrissen

Description

@stefandrissen

The following code is incorrectly being flagged:

DEFINE VARIABLE hds AS HANDLE NO-UNDO.
DEFINE VARIABLE ht  AS HANDLE NO-UNDO.

CREATE DATASET hds.
CREATE TEMP-TABLE ht. // <-- Memory allocated to this object is not released in this code block
ht:ADD-NEW-FIELD( 'bar':u, 'int':u ).
ht:TEMP-TABLE-PREPARE( 'foo':u ).
hds:ADD-BUFFER( ht:DEFAULT-BUFFER-HANDLE ).

DELETE OBJECT hds. // <-- this cleans up all the dataset's dynamic objects

The temp-table object is deleted by the delete of the dataset.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions