Uploaded image for project: 'Commons Crypto'
  1. Commons Crypto
  2. CRYPTO-89

more robust native code to eliminate memory leak

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      currently, when handling error in the native code, some resource allocated is not deallocated.

          input_bytes = (unsigned char *) (*env)->GetByteArrayElements(env, input, 0);  //in some case, it is not deallocated
      

      the byte array may accupy lots of memory. this can cause serious memory leak in the long-running server

      Attachments

        Activity

          People

            kexianda Xianda Ke
            kexianda Xianda Ke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: