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

Memory leak using write_concern

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 0.7
    • 0.6
    • None
    • 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

            gjmurakami Gary Murakami
            m4nti5 marcos grillo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: