Hi I think the "it" here refers back to the dog Harry was able to climb over the dog because Hermione had put the dog to sleep with the flute Harry then gets into the hole, holding onto the edge of it by his fingertips. He doesn't know how far it is to the bottom of the hole but he lets go. He releases his fingertips and falls.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.