Merge branch 'leak-fix' into feat/c-wrapper

This commit is contained in:
Prem Chaitanya Prathi 2024-03-07 10:16:05 +05:30
commit 1a59da6c32
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,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){