commit | b4c0e0c61f81dedc82dda35c287ea149ff98b434 | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Thu Aug 11 18:17:22 2016 +0100 |
committer | David S. Miller <davem@davemloft.net> | Sat Aug 13 14:56:17 2016 -0700 |
tree | ec7aea76bd12aa927205b592f846f782cc8904d2 | |
parent | 747ea55e4f78fd980350c39570a986b8c1c3e4aa [diff] |
calipso: fix resource leak on calipso_genopt failure Currently, if calipso_genopt fails then the error exit path does not free the ipv6_opt_hdr new causing a memory leak. Fix this by kfree'ing new on the error exit path. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>