Skip to content
Commit b4c0e0c6 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 747ea55e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment