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

Memory Leak in c4_setTempDir

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.8.4
    • Component/s: LiteCore
    • Security Level: Public
    • Labels:
      None
    • Sprint:
      Jim 34
    • Story Points:
      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

          Hide
          jimb Jim Borden added a comment -
          Show
          jimb Jim Borden added a comment - https://github.com/couchbase/couchbase-lite-core/pull/1086 Forgot to link this via semantics

            People

            Assignee:
            jimb Jim Borden
            Reporter:
            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