8000 Fix memory leak with modified UTF-8 keying operation · boxer/android-database-sqlcipher@36e92bf · GitHub
[go: up one dir, main page]

Skip to content

Commit 36e92bf

Browse files
Fix memory leak with modified UTF-8 keying operation
1 parent 25d3255 commit 36e92bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jni/net_sqlcipher_database_SQLiteDatabase.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ namespace sqlcipher {
145145
throw_sqlite3_exception(env, handle);
146146
}
147147
}
148+
env->ReleaseCharArrayElements(jKey, jKeyChar, JNI_ABORT);
148149
env->ReleaseStringUTFChars(key, password);
149150
}
150151

0 commit comments

Comments
 (0)
0