Harry Potter and the Chamber of Secrets (movie)
Harry gives the book back to Lucius Malfoy and finds out that Dobby is the Malfoy family's slave. Harry tricks Lucius into freeing Dobby from his service.