Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
6e6facba
Commit
6e6facba
authored
Oct 17, 2018
by
Hubert Chathi
Browse files
fix c+p error: don't clobber the decryption object on error
parent
09dc3b60
Changes
1
Hide whitespace changes
Inline
Side-by-side
android/olm-sdk/src/main/jni/olm_pk.cpp
View file @
6e6facba
...
...
@@ -414,12 +414,6 @@ JNIEXPORT jbyteArray OLM_PK_DECRYPTION_FUNC_DEF(generateKeyJni)(JNIEnv *env, job
if
(
errorMessage
)
{
// release the allocated data
if
(
decryptionPtr
)
{
olm_clear_pk_decryption
(
decryptionPtr
);
free
(
decryptionPtr
);
}
env
->
ThrowNew
(
env
->
FindClass
(
"java/lang/Exception"
),
errorMessage
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment