phongo_execute_command() leaks BSON reply on error

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.4.0-beta1, 1.4.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: