mirror of
https://github.com/logos-messaging/negentropy.git
synced 2026-01-07 00:13:12 +00:00
fix: leak in initiate
This commit is contained in:
parent
f23efbb66c
commit
fa14737926
@ -63,7 +63,9 @@ size_t negentropy_initiate(void* negentropy, buffer* out){
|
||||
return 0;
|
||||
}
|
||||
memcpy( out->data, output->c_str() ,output->size());
|
||||
return output->size();
|
||||
size_t outlen = output->size();
|
||||
delete output;
|
||||
return outlen;
|
||||
}
|
||||
|
||||
void negentropy_setinitiator(void* negentropy){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user