The horse, called Gracie, was unable to free itself and could have been in danger were it not for a passer-by who was able to come to the rescue after he heard the horse whinnying .