Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8301760

Fix possible leak in SpNegoContext dispose

XMLWordPrintable

        SpNegoContext dispose() sets mechanism context to null without calling it's dispose() first. It would be OK but in case of a custom native provider there may be a memory leak.
        The obvious fix would be, make dispose() like that in e.g. GSSContextImpl.java.
        The leak was reported in production but it is hard to reproduce in a regression test.
        And, it's not a regression, this code is dated by 2005 I think.

              yan Yuri Nesterenko
              yan Yuri Nesterenko
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: