View | Details | Raw Unified | Return to bug 33711
Collapse All | Expand All

(-)StandardManager.java (-3 / +9 lines)
Lines 556-561 Link Here
556
                session.expire(false);
556
                session.expire(false);
557
            } catch (Throwable t) {
557
            } catch (Throwable t) {
558
                ;
558
                ;
559
            } finally {
560
                session.recycle();
559
            }
561
            }
560
        }
562
        }
561
563
Lines 670-681 Link Here
670
        Session sessions[] = findSessions();
672
        Session sessions[] = findSessions();
671
        for (int i = 0; i < sessions.length; i++) {
673
        for (int i = 0; i < sessions.length; i++) {
672
            StandardSession session = (StandardSession) sessions[i];
674
            StandardSession session = (StandardSession) sessions[i];
673
            if (!session.isValid())
674
                continue;
675
            try {
675
            try {
676
                session.expire();
676
                if (session.isValid()) {
677
                    session.expire();
678
                }
677
            } catch (Throwable t) {
679
            } catch (Throwable t) {
678
                ;
680
                ;
681
            } finally {
682
                // Measure against memory leaking if references to the session
683
                // object are kept in a shared field somewhere
684
                session.recycle();
679
            }
685
            }
680
        }
686
        }
681
687

Return to bug 33711