fixed potential memory leak in pgphandler

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8509 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
electron128 2015-06-17 09:25:55 +00:00
parent 72033c0efa
commit 15bb95a398

View File

@ -535,6 +535,7 @@ std::string PGPHandler::makeRadixEncodedPGPKey(const ops_keydata_t *key,bool inc
} }
else else
{ {
ops_create_info_delete(cinfo);
std::cerr << "Unhandled key type " << key->type << std::endl; std::cerr << "Unhandled key type " << key->type << std::endl;
return "ERROR: Cannot write key. Unhandled key type. " ; return "ERROR: Cannot write key. Unhandled key type. " ;
} }