Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-58

Add a way to free detached strings

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      When methods like kms_request_get_signed return char* pointers, kms-message needs to provide a method so the parent library can free the return char* pointer back into the heap it was allocated on.

      Basically, just write kms_request_free(void*) and have it call free().

      This will ensure that if kms-message is used as a shared library, the memory it allocates is correctly freed.

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: