Killer sentenced for leaving man's body in barrel