Skip to content

CID 1508893: Resource leak #10424

@maskit

Description

@maskit

inline/cache-handler.h

7. alloc_fn: Storage is returned from allocation function operator new.
   	8. var_assign: Assigning: io = storage returned from new ats::io::IO.
329      ats::io::IO *const io = new io::IO();
330
331      TSDebug(PLUGIN_TAG, "request:\n%s", request.c_str());
332
   	9. noescape: Resource io is not freed or pointed-to in copy. [[show details](https://scan6.scan.coverity.com/eventId=34658344-9&modelId=34658344-0&fileInstanceId=164786264&filePath=%2Fplugins%2Fexperimental%2Finliner%2Fts.cc&fileStart=52&fileEnd=58)]
   	10. noescape: Resource io is not freed or pointed-to in get. [[show details](https://scan6.scan.coverity.com/eventId=34658344-11&modelId=34658344-1&fileInstanceId=164786256&filePath=%2Fplugins%2Fexperimental%2Finliner%2Ffetcher.h&fileStart=327&fileEnd=330)]
333      ats::get(io, io->copy(request), AnotherClass(src_));
   	
CID 1508893 (#1 of 1): Resource leak (RESOURCE_LEAK)
11. leaked_storage: Variable io going out of scope leaks the storage it points to.
334    }

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions