fix leak on sign/encrypt fail

This commit is contained in:
Jeff Becker 2018-09-12 19:21:59 -04:00
parent b56d25730e
commit b947e55616
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -949,7 +949,10 @@ namespace llarp
self->m_LocalIdentity)) self->m_LocalIdentity))
llarp_logic_queue_job(self->logic, {self, &Result}); llarp_logic_queue_job(self->logic, {self, &Result});
else else
{
llarp::LogError("failed to encrypt and sign"); llarp::LogError("failed to encrypt and sign");
delete self;
}
} }
}; };