He places his sock in Tom Riddle's Diary and gives it to Lucius who immediately tosses it in Dobby's direction.
Socks are an important symbol for Dobby, as it represents his freedom from slavery. In the Harry Potter series, house elves are immediately freed from enslavement if their master gives them clothing.
Dobby went on to work in the kitchens at Hogwarts for several years. He died as he rescued Harry, Hermione, Luna and Ron, as well as Dean Thomas, Griphook, and the wandmaker Garrick Ollivander after they had been caught by snatchers and taken to Malfoy Manor.
Harry famously frees Dobby from captivity by tricking villain Lucius Malfoy into giving the elf a single sock. Dobby continues wearing the sock for the rest of his life as a symbol of his freedom and friendship with Harry.
Dobby, the house-elf, is fatally injured in "Harry Potter and the Deathly Hallows" when he is stabbed by Bellatrix Lestrange's enchanted knife. The severity of the injury and rapid blood loss make it difficult for Dobby's friends to save him.
Dobby's Death Signified the Death of Innocence
His tragic death in The Deathly Hallows Part 1 was not only the death of an innocent creature that got caught in the shuffle, but signified a much greater tragedy: the death of innocence altogether.
In the book, it's primarily because: Hermione didn't disapparate with Harry and Dobby from Malfoy manner. So it's possible she wasn't close by them. Ron apparated with her based on the description of the scene and not knowing Dobby's injury, he probably took her right back to Shell Cottage without thinking.
This year, Rowling is is sorry for, “for killing someone who didn't die during the Battle of Hogwarts, but who laid down his life to save the people who'd win it.” “I refer, of course, to Dobby the house elf,” Rowling wrote on Twitter.
According to the WOMBAT test, it is possible that house-elves have an average life expectancy of 200 years, cannot be ordered to kill themselves, breed infrequently and only with their master's permission, can override wizard enchantments, and have an allegiance to their home rather than its inhabitants.
Eventually, he was hired by Albus Dumbledore to work in the kitchens of Hogwarts for a Galleon a week and one day a month off. Hermione Granger was initially indignant at the amount of pay, but Dobby explained that he requested that amount, as Dumbledore had offered ten Galleons a week and weekends off.
When Dobby's last words before dying in Harry's arms are "Such a beautiful place, to be with friends. Dobby is happy to be with his friend, Harry Potter."
He chooses to rip a particular page with a pointed glance out of a book. Why?" The poster theorizes that Draco was curious about basilisks because his dad, Lucious, had been talking about it at home.
Also, Dobby's injury was so severe that there was very little time in which to save him. He and Harry landed somewhat far from Ron and Hermione so Hermione wouldn't have immediately known that she could/should look for her dittany in time to save him. Highly active question.
Over time, Harry would learn that this was because House-elves had little to no self-worth and that they simply wore what was discarded. It is also because the only way to free a House-elf from this life of servitude is for someone to gift them with a piece of clothing.
After Harry helps him win his freedom from the sinister Malfoy family, Dobby pledges his loyalty to the Hogwarts student. Eventually, he sacrifices himself so that Harry and his friends could go on to save the world from Lord Voldemort.
An elf typically claims adulthood and an adult name around the age of 100 and can live to be 750 years old. Elves take their time doing things because of their long life span. So to them 100 years feels like what 20 years feels like to a Human.
Elf mothers are with child for 1 year. Once born, elves' minds and bodies initially grow rapidly, advancing past the infant and toddler stage within the first year. Development then slows down and an elf is mentally in adolescence for roughly the next 49 years.
Even then, half-elves live two to three times as long as average humans. Again, not immortal, but living three human lifespans gives you some life experience wiggle room. Also, I should note that half-elves have a shorter life span than elves.
All this while, all Dobby has wanted was to warn Harry about Lucius Malfoy's involvement in the opening of the Chamber of Secrets. He wanted Harry to be safe and thus tried his best to dissuade him from going back to school.
Dobby Proudly Gave His Life to Save His Friend
Since then, Harry and Dobby have fostered a powerful friendship, and Harry eventually freed Dobby from Malfoy's servitude. Years later, Dobby returned the favor by saving Harry from the Malfoys and other Death Eaters. However, this action sadly cost him his life.
The short answer is that Dobby knew the Chamber of Secrets was about to open that year. And wanted to protect Harry by ensuring he never got to Hogwarts.
After being on the run from a bunch of Snatchers, the gang were taken to Malfoy Manor, where Bellatrix proceeded to torture Hermione using the Cruciatus Curse. It was a testament to Hermione's toughness that she was able to walk away without lasting damage.
Hermione sees Harry as only a friend so she has no trouble hugging him. The same is not true of Ron who she has stronger, unacknowledged feelings for. She doesn't want to hug him for fear it will become immediately and plainly obvious to him and even Harry how she feels about Ron.
Because they knew Bellatrix lost her wand, therefore, showing it would have blown their cover.