mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8301760: Fix possible leak in SpNegoContext dispose
Reviewed-by: weijun
This commit is contained in:
parent
b4cb6c8e8b
commit
3f3356bcbd
@ -243,8 +243,11 @@ public class SpNegoContext implements GSSContextSpi {
|
||||
}
|
||||
|
||||
public final void dispose() throws GSSException {
|
||||
mechContext = null;
|
||||
state = STATE_DELETED;
|
||||
if (mechContext != null) {
|
||||
mechContext.dispose();
|
||||
mechContext = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user