Fix memory leaks

 - fix memory leak on exception in Key::SignCompact()
   (see also bitcoin/bitcoin@6f21e73 of the bitcoin repo)
 - fix memory leak in CKey::SetCompactSignature()
   (see also bitcoin/bitcoin@27e35bf of the bitcoin repo)