Fix double free