Commit d0b07f7
media: ttpci: fix two memleaks in budget_av_attach
When saa7146_register_device and saa7146_vv_init fails, budget_av_attach
should free the resources it allocates, like the error-handling of
ttpci_budget_init does. Besides, there are two fixme comment refers to
such deallocations.
Fixes: 1da177e ("Linux-2.6.12-rc2")
Signed-off-by: Zhipeng Lu <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>1 parent b9b6838 commit d0b07f7
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1463 | 1463 | | |
1464 | 1464 | | |
1465 | 1465 | | |
1466 | | - | |
| 1466 | + | |
| 1467 | + | |
1467 | 1468 | | |
1468 | 1469 | | |
1469 | 1470 | | |
| |||
1472 | 1473 | | |
1473 | 1474 | | |
1474 | 1475 | | |
1475 | | - | |
1476 | | - | |
1477 | 1476 | | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
1478 | 1480 | | |
1479 | 1481 | | |
1480 | 1482 | | |
| |||
0 commit comments