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

Memory leak if Serializable::bsonSerialize() returns keys with null bytes

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2.9
    • Affects Version/s: 1.2.8
    • Component/s: None
    • None

      This leak was introduced in 84dbfe0 (PHPC-891). When throwing an exception for null bytes in public property names, we neglect to free obj_data if we were currently iterating through the hash of bsonSerialize()'s return value.

            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: