Fix memory leaks

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