Add free_check() helper to free the memory allocated by init_check(). Signed-off-by: Simon Horman <horms@verge.net.au>