Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-1439

Memory Leak in c4_setTempDir

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.8.4
    • 2.7.0
    • LiteCore
    • Security Level: Public
    • None
    • Jim 34
    • 2

    Description

      This was noted in comments in the source, but when setting sqlite3_temp_directory the old value will be leaked. The assumption was that this method would not be called more than once, so if that assumption is not true then one of two things needs to happen:

      1. Free the old value before resetting (probably dangerous, according to SQLite documentation, but the dangerous part of changing it while operations are ongoing is probably already happening)
      2. Only set the value if it currently contains null

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jimb Jim Borden
            jimb Jim Borden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty