diff options
author | Dongliang Mu <[email protected]> | 2022-08-11 06:57:00 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2022-08-30 07:31:42 +0200 |
commit | 23bc5eb55f8c9607965c20d9ddcc13cb1ae59568 (patch) | |
tree | c6e3dae1227017b2b4a13dbe2f9dfd3193a2eebc /tools/lib/api/debug.c | |
parent | d682869daa23938b5e8919db45c4b5b227749712 (diff) |
media: airspy: fix memory leak in airspy probe
The commit ca9dc8d06ab6 ("media: airspy: respect the DMA coherency
rules") moves variable buf from stack to heap, however, it only frees
buf in the error handling code, missing deallocation in the success
path.
Fix this by freeing buf in the success path since this variable does not
have any references in other code.
Fixes: ca9dc8d06ab6 ("media: airspy: respect the DMA coherency rules")
Reported-by: [email protected]
Signed-off-by: Dongliang Mu <[email protected]>
Reviewed-by: Tommaso Merciai <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/lib/api/debug.c')
0 files changed, 0 insertions, 0 deletions