Dobby and the whole sock thing
The rules are clear.
An elf only receives freedom if YOUR MASTER gives you an item of his clothing... however the clothing was not Lucius's, but Harry's. Lucius never intended to give anything to his elf.
So why Dobby get his freedom??? It does not make any sense