public static synchronized void cleanup(){
  w.lock();
  try {
    secp256k1_destroy_context(Secp256k1Context.getContext());
  }
  finally {
    w.unlock();
  }
}

public static synchronized void cleanup ( ) { w . lock ( ) ; try { secp256k1_destroy_context ( Secp256k1Context . getContext ( ) ) ; } finally { w . unlock ( ) ; } }
libsecp256k1 cleanup - this destroys the secp256k1 context object this should be called at the end of the program for proper cleanup of the context .
