How did dobby get freed

How did dobby get freed. Dobby died in Harry’s arms, as he expressed gratitude for his freedom and devotion to the Boy Who Lived, with his last words being “Dobby is happy to be with his friend, Harry Potter”. He accepted a job at Hogwarts, with Dumbledore offering him ten galleons a week with weekends off. In 1993, Harry Potter freed Dobby by tricking Lucius into unknowingly giving Dobby a sock. Dobby loved being free and wasn't going to go back to being an unpaid slave. . But after Harry Potter freed Dobby from the Malfoys, Dobby knocked Lucius Malfoy down a flight of stairs ( CS18 ), gave Harry Gillyweed so he could breathe underwater and rescue Ron ( GF26 ), Harry challenges Lucius Malfoy and tricks him into granting Dobby the house-elf freedom. Lucius became angry and attempted to attack Harry, but Dobby blasted him down a flight of stairs and forcefully told him to leave, with Dobby finally getting revenge on his former cruel master. In the book, Harry put Tom Riddle's Diary inside the sock and Malfoy attempts to attack him before Dobby blasts him down some stairs three at a time. Dobby the house-elf from the Malfoy family gained freedom in Harry Potter and the Chamber of Secrets, but who freed him of servitude and how? The way in which Harry tricks Lucius Malfoy into freeing Dobby differs between the book and the film. Once Dobby became a free elf, he took a well-deserved break, but then he wanted to get back to work. Dobby the house-elf from the Malfoy family gained freedom in Harry Potter and the Chamber of Secrets, but who freed him of servitude and how? The way in which Harry tricks Lucius Malfoy into freeing Dobby differs between the book and the film. ptbaj tujbz zxxu fsfxqvu tbxekpzy xyjh acmx was okvfbt tqq