Skip to content

cppflow2: potential memory leak #54

@ljn917

Description

@ljn917

The current implementation in raw_ops.h would leak TFE_Op (variable op) if TFE_OpAddInput or TFE_Execute failed and status_check() threw. One possible solution is to wrap TFE_Op with unique_ptr.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions