Skip to content
Snippets Groups Projects
Commit 36fd68c8 authored by manuroe's avatar manuroe Committed by Hubert Chathi
Browse files

OLMAccount: Fix use of object after its memory was released

parent 20ee3858
No related branches found
No related tags found
No related merge requests found
......@@ -133,6 +133,7 @@
const char *error = olm_account_last_error(_account);
NSLog(@"error getting id keys: %s", error);
free(otkBytes);
return nil;
}
NSData *otk = [NSData dataWithBytesNoCopy:otkBytes length:otkLength freeWhenDone:YES];
NSError *error = nil;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment