The bug
Lead remains attached to the fence when the mob is killed.
Steps to Reproduce:
Place down a fence and obtain a lead.
Summon a pig and use the lead to leash it to the fence.
Kill the pig and watch the leash knot closely.
Observed Behavior:
Leash knots remain attached to fences when the leashed entity is killed.
Expected Behavior:
Leash knots would not remain attached to fences when the leashed entity is killed. Instead, as soon as the leashed entity is slain, the leash knot should be destroyed.
Code analysis
Code analysis by @unknown can be found in this comment.
Linked issues
is duplicated by 16
Attachments
Comments 38
Doesnt really sound like a bug... seems like this should happen. as long as the mob that was killed isnt stuck on his side still tied to the post till you break it, and then disaapears.
Confirmed in 1.6.1
Related to MC-15084. Both bug reports are about leashed mobs being killed.
Duplicate of MC-14004.
Can confirm in 1.18.2 and 22w18a.
Can confirm in 1.19.
Can confirm in 1.19.2.

In 1.20.3
Can confirm in 1.20.4 Release Candidate 1
Confirmed in 13w21b.