Who is Dobby the house elf?

Dobby was a house elf that belonged to the Malfoy family. At great risk to himself, he tried to keep Harry from danger by attempting to persuade him not to return to Hogwarts. When this failed, he continued trying to make Harry return home. Dobby was different than other house elves in the fact he wanted to feel appreciated for his servitude. He was treated poorly by the Malfoy family and was often instructed to punish himself in terrible ways. After Harry came out of the Chamber of Secrets, he tricked Lucius Malfoy into freeing Dobby. Dobby then went to work at Hogwarts and was always grateful to Harry Potter. He helped Harry out of a few jams. He once stole gilleyweed out of Professor Snape's supply closet to help Harry through a task in the tri-wizard tournament. Dobby had a great love for socks, being the item that won him his freedom. One Christmas he was moved to tears when Harry presented him with socks as a gift. Dobby's final deed was that of great courage and loyalty when he made a mass rescue of those imprisoned in Malfoy Manor. As he was making his final escape with Harry, Bellatrix threw a knife. It was intended for Harry, but hit Dobby squarely in the chest. Harry, Dean, and Ron made Dobby a grave at Bill and Fleur's home, Shell Cottage. Harry marked Dobby's headstone with, "Here Lies Dobby, A Free Elf".