Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-148

Memory leak using write_concern

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 0.6
    • Fix Version/s: 0.7
    • Component/s: None
    • Labels:
    • Environment:
      fedora Linux 2.6.35.13-92.fc14.i686.PAE #1 SMP i686 i686 i386 GNU/Linux

      Description

      If you use the mongo_set_write_concern function it internally leaks the response bson of the mongo_check_last_error function. Attched there is some code that reproduces this and a valgrind trace with the leak.

        Attachments

        1. mongo.c.patch
          0.5 kB
        2. mongo-leak.c
          1 kB
        3. mongo-valgrind.txt
          1 kB

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: