close db cursor after reading cert

This commit is contained in:
Daniel Gultsch 2016-06-12 12:50:31 +02:00
parent 5017e8564c
commit 74d376be68
1 changed files with 1 additions and 0 deletions

View File

@ -1135,6 +1135,7 @@ public class DatabaseBackend extends SQLiteOpenHelper {
} else {
cursor.moveToFirst();
byte[] certificate = cursor.getBlob(cursor.getColumnIndex(SQLiteAxolotlStore.CERTIFICATE));
cursor.close();
if (certificate == null || certificate.length == 0) {
return null;
}