Avoid double-free on failure to dump_descriptor() a cached md

This is a fix for 10423, which was introducd in caa0d15c in 0.2.4.13-alpha.

Spotted by bobnomnom.
Merge branch 'bug10423' into maint-0.2.4
Merge remote-tracking branch 'origin/maint-0.2.4'