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

php_phongo_pclient_t is leaked during MSHUTDOWN

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.2.7
    • Affects Version/s: 1.2.6
    • Component/s: None
    • None

      PHPC-912 introduced a php_phongo_pclient_t struct to encapsulate both the mongoc_client_t and PID, which is persisted across requests. When the persistent hash's destroy function was changed to only free mongoc_client_t if the PID matched the current process, we neglected to add a free on the php_phongo_pclient_t wrapper, which should always happen.

      This is not a major issue, since the memory is leaked during MSHUTDOWN.

      Note: this was discovered while checking for outstanding PHP 7 memory leaks for PHPC-500.

            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: