Fix memory leak on exception in Key::SignCompact