Fix double-free in corruption_test