Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1072

phongo_execute_command() leaks BSON reply on error

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0-beta1, 1.4.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Per the libmongoc docs, mongoc_client_command_with_opts()'s reply must always be freed.

      This leak was noticed from a couple of tests introduced in PHPC-834 that specified writeConcern in a ping command and ignored the resulting server exception.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: