Commit 0e60d1c
committed
[SQUASHME]ASoC: SOF: utils: fix memory leak of names during remove()
Change to use devm_kstrdup() for string duplicate allocation, which will
be freed together with dev free, to fix memory leak (names are not freed)
during remove().
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>1 parent 67675cb commit 0e60d1c
1 file changed
+2
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 47 | | |
54 | 48 | | |
55 | 49 | | |
0 commit comments