]> granicus.if.org Git - libnl/commit
lib/route/cls/u32.c: remove pointless nl_data_append calls
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Thu, 8 Jun 2017 08:59:22 +0000 (10:59 +0200)
committerRasmus Villemoes <linux@rasmusvillemoes.dk>
Thu, 8 Jun 2017 08:59:22 +0000 (10:59 +0200)
commit2fda8661fd55e747d44974054b73bb66153aeb59
tree38534500880a066ba324b46ab6ad9fbc0d3760e9
parent8d807b215f1ffc8b2705e6356f7450a9fcc602d1
lib/route/cls/u32.c: remove pointless nl_data_append calls

Increasing the size of the u->cu_selector item by the size of a struct
tc_u32_key (i.e., making the flexible array member sel->keys one element
bigger) is pointless when one doesn't update sel->nkeys or otherwise
records the increased size, so these are effectively memory leaks.
lib/route/cls/u32.c