House Malfoy had every right to execute Dobby for his treason.