#fixed code
                                 private MongoDatabase database() {

          return this.mongoClient.getDatabase(databaseName);
     }
#vulnerable code 
                                 private MongoDatabase database() {

          return createMongoClient().getDatabase(databaseName);
     } 
                            #location 3 
                            #vulnerability type RESOURCE_LEAK