F-5887: close Curve25519 release split-lock race by freeing under one lock

pull/237/head
Chris Conlon 2026-07-07 12:11:49 -06:00
parent 866cca671f
commit 21cfcc0bae
1 changed files with 1 additions and 1 deletions

View File

@ -58,8 +58,8 @@ public class Curve25519 extends NativeStruct {
synchronized (pointerLock) {
wc_curve25519_free();
}
super.releaseNativeStruct();
}
state = WolfCryptState.RELEASED;
}
}