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

Memory leak using write_concern

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

      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.

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

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

              Created:
              Updated:
              Resolved: