Memory leak using write_concern

XMLWordPrintableJSON

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

      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:
              Gary Murakami (Inactive)
              Reporter:
              Marcos Grillo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: