Commit 842e238
Xin Long
net: sched: call tcf_ct_params_free to free params in tcf_ct_init
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2106859
Tested: compile only
commit 1913894
Author: Xin Long <lucien.xin@gmail.com>
Date: Sun Nov 6 15:34:16 2022 -0500
net: sched: call tcf_ct_params_free to free params in tcf_ct_init
This patch is to make the err path simple by calling tcf_ct_params_free(),
so that it won't cause problems when more members are added into param and
need freeing on the err path.
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Xin Long <lxin@redhat.com>1 parent 1391e06 commit 842e238
1 file changed
+18
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
| 348 | + | |
349 | 349 | | |
350 | | - | |
351 | | - | |
352 | | - | |
| 350 | + | |
353 | 351 | | |
354 | 352 | | |
355 | 353 | | |
| |||
836 | 834 | | |
837 | 835 | | |
838 | 836 | | |
839 | | - | |
| 837 | + | |
840 | 838 | | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
| 839 | + | |
| 840 | + | |
846 | 841 | | |
847 | 842 | | |
848 | 843 | | |
849 | 844 | | |
850 | 845 | | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
851 | 854 | | |
852 | 855 | | |
853 | 856 | | |
| |||
1394 | 1397 | | |
1395 | 1398 | | |
1396 | 1399 | | |
1397 | | - | |
| 1400 | + | |
1398 | 1401 | | |
1399 | 1402 | | |
1400 | 1403 | | |
| |||
1405 | 1408 | | |
1406 | 1409 | | |
1407 | 1410 | | |
1408 | | - | |
| 1411 | + | |
1409 | 1412 | | |
1410 | 1413 | | |
1411 | 1414 | | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
1415 | 1415 | | |
1416 | 1416 | | |
1417 | 1417 | | |
1418 | | - | |
| 1418 | + | |
| 1419 | + | |
1419 | 1420 | | |
1420 | 1421 | | |
1421 | 1422 | | |
| |||
1427 | 1428 | | |
1428 | 1429 | | |
1429 | 1430 | | |
1430 | | - | |
| 1431 | + | |
1431 | 1432 | | |
1432 | 1433 | | |
1433 | 1434 | | |
| |||
0 commit comments