-
由 Ilan Tayari 提交于
commit 1a6509d9 ("[IPSEC]: Add support for combined mode algorithms") introduced aead. The function attach_aead kmemdup()s the algorithm name during xfrm_state_construct(). However this memory is never freed. Implementation has since been slightly modified in commit ee5c2317 ("xfrm: Clone states properly on migration") without resolving this leak. This patch adds a kfree() call for the aead algorithm name. Fixes: 1a6509d9 ("[IPSEC]: Add support for combined mode algorithms") Signed-off-by: NIlan Tayari <ilant@mellanox.com> Acked-by: NRami Rosen <roszenrami@gmail.com> Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
b5884793