Fix double free.