Skip to content

Conversation

paulb777
Copy link
Member

No description provided.

@paulb777
Copy link
Member Author

The SPM CI failure is a result of #6777. I'll make a fix for that and then restart this.

The root of the issue is that when serializing a singular filter, it is being treated as a unary filter before it is definitively established whether it is a unary filter or a field filter. The leak is caused by always serializing the unary filter's field path field for equality and non-equality filters -- if the filter's value turns out not to be NaN or null, the serialization code switches the filter's type to a field filter without clearing the partially-initialized unary filter. `pb_release` would not free the `unary_filter.field.field_path` member variable because it would consider the object not to be a unary filter.

Also a small refactoring to make the function easier to digest.
@paulb777
Copy link
Member Author

Merging now. I'll update the tags and rebuild the zip in the morning.

@paulb777 paulb777 merged commit 9404f28 into release-7.0 Oct 20, 2020
@paulb777 paulb777 deleted the pb-cp6778 branch October 20, 2020 02:40
@firebase firebase locked and limited conversation to collaborators Nov 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants