Skip to content

3 possible memory leak issues #294

@keqiaozhang

Description

@keqiaozhang

There‘re three possible memory leak issues on kernel driver:

Details:
#1:Possible memory leak. Dynamic memory stored in 'sroute->route.source' allocated through function 'kstrdup' at line 2311 can be lost at line 2336
/home/otc/sof/kernel/cros-sof-v4.14-rebase/sound/soc/sof/topology.c:2336 | sof_route_load()

#2:Possible memory leak. Dynamic memory stored in 'sroute->route.sink' allocated through function 'kstrdup' at line 2315 can be lost at line 2336
/home/otc/sof/kernel/cros-sof-v4.14-rebase/sound/soc/sof/topology.c:2336 | sof_route_load()

#3:Memory leak. Dynamic memory stored in 'sroute->route.control' allocated through function 'kstrdup' at line 2322 is lost at line 2336
/home/otc/sof/kernel/cros-sof-v4.14-rebase/sound/soc/sof/topology.c:2336 | sof_route_load()

Metadata

Metadata

Assignees

Labels

P1Blocker bugs or important featuresbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions