sanity.c: fix memory leak in *both* code paths

Signed-off-by: Steven Noonan <steven@uplinklabs.net>