Commit 708c83f
ovs-router: Fix JSON object leak in ovs/router/rule/show command.
There is a memory leak when listing router rules in JSON format when a
rule doesn't match the requested address family.
Coverity report:
CID 556928: Resource leaks (RESOURCE_LEAK)
Variable "entry" going out of scope leaks the storage it points to.
Fixes: 5c30756 ("ovs-router: Introduce ovs/route/rule/show command.")
Signed-off-by: Dima Chumak <[email protected]>
Signed-off-by: Ilya Maximets <[email protected]>1 parent 3200111 commit 708c83f
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
858 | | - | |
| 858 | + | |
859 | 859 | | |
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
| 863 | + | |
863 | 864 | | |
864 | 865 | | |
865 | 866 | | |
| |||
0 commit comments