-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
The original implementation of php_phongo_zval_to_bson_value from f167da9 for PHPC-1499 does not free the bson_t used to hold the intermediary result between zval conversion and bson_value_t extraction.
This function was previously only used by ClientEncryption::encrypt() and decrypt(). The leak was discovered when implementing supports for the BulkWrite and Query comment options in PHPC-2049.