mozilla-services/android-sync — comment on commit c0c8705c38f29bef2df7ae9c0c3184314be2ff6f
File: src/main/java/org/mozilla/gecko/sync/stage/SyncClientsEngineStage.java line 174
By rnewman:

Let's not do this. Try to move these into the constructor, compute them when needed, or create and destroy as necessary in execute — using try…finally.

Right now you can leak the DB handle if execute isn't called, or if execute fails!