google-cloud-logging: LoggingImpl.pendingWrites remove before add (with suggested fix) #4668
Labels
api: logging
Issues related to the Cloud Logging API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
In LoggingImpl, it is possible to leak memory in pendingWrites, if the future completes before the callback is added. If so, the callback runs before the call to
pendingWrites.remove()
A proposed fix is to move this code to between creating the future and adding the callback.
The text was updated successfully, but these errors were encountered: