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
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment