Browse Source

.oO( is this even needed? but it's correct, so… )

master
Volker Birk 6 years ago
parent
commit
84c13bde15
  1. 4
      src/basic_api.cc

4
src/basic_api.cc

@ -106,8 +106,10 @@ namespace pEp {
auto result = boost::python::list();
for (::identity_list *il = private_keys; il && il->ident; il=il->next) {
::pEp_identity *ident = ::identity_dup(il->ident);
if (!ident)
if (!ident) {
free_identity_list(private_keys);
throw bad_alloc();
}
result.append(Identity(ident));
}

Loading…
Cancel
Save