Skip to content

Commit 8baae1f

Browse files
committed
fix #3372:Resource Leak in SqlUtils.java
1 parent 3fbefee commit 8baae1f

File tree

1 file changed

+1
-0
lines changed
  • WordPressUtils/src/main/java/org/wordpress/android/util

1 file changed

+1
-0
lines changed

WordPressUtils/src/main/java/org/wordpress/android/util/SqlUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public static boolean dropAllTables(SQLiteDatabase db) throws SQLiteException {
118118
return true;
119119
} finally {
120120
db.endTransaction();
121+
closeCursor(cursor);
121122
}
122123
}
123124

0 commit comments

Comments
 (0)