#fixed code
                                public void handleError(Session s, Throwable exception) {
        doSaveExecution(s, session -> {
                    members.unregister(session.getId());
                    eventBus.post(UNEXPECTED_SITUATION.occurFor(session, exception.getMessage()));
                }
        );
    }
#vulnerable code 
                                public void handleError(Session s, Throwable exception) {
        doSaveExecution(new SessionWrapper(s), session -> {
                    members.unregister(session.getId());
                    eventBus.post(UNEXPECTED_SITUATION.occurFor(session, exception.getMessage()));
                }
        );
    } 
                            #location 2 
                            #vulnerability type RESOURCE_LEAK