[media] cx23885: Don't leak firmware in cx23885_card_setup()
We leak the memory allocated to 'fw' (the firmware) when the variable goes out of scope. Fix the leak by calling release_firmware(fw) before 'fw' goes out of scope. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
451a51b218
commit
3f84a4e1c1
1 changed files with 1 additions and 0 deletions
|
@ -1399,6 +1399,7 @@ void cx23885_card_setup(struct cx23885_dev *dev)
|
|||
else
|
||||
altera_init(&netup_config, fw);
|
||||
|
||||
release_firmware(fw);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue