Fix double-free