[CDRIVER-3753] Leak in topologyVersion check Created: 16/Jul/20  Updated: 28/Oct/23  Resolved: 17/Jul/20

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.17.0-beta
Fix Version/s: 1.17.0

Type: Bug Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

CDRIVER-3535 introduced a leak in the topologyVersion check here:
https://github.com/mongodb/mongo-c-driver/commit/857d9de942b01ad48b1baa4d5ca2bb0cd05b4c96#diff-e697725d889d95aad42f045b28d66faeR1956

If the SDAM monitoring topology_changed callback is set, prev_td will have been allocated, and is not destroyed.



 Comments   
Comment by Githook User [ 17/Jul/20 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CDRIVER-3753 fix leak of topology description
Branch: r1.17
https://github.com/mongodb/mongo-c-driver/commit/0d6a915385b01f0fa79f064d53c7550909b15b1f

Comment by Githook User [ 17/Jul/20 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CDRIVER-3753 fix leak of topology description
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/6f91c0feb22fb08d711fc57a54000c8c5eee3307

Comment by Kevin Albertson [ 16/Jul/20 ]

PR: https://github.com/mongodb/mongo-c-driver/pull/663

Comment by Kevin Albertson [ 16/Jul/20 ]

Caught by coverity, CID 115887.

Generated at Wed Feb 07 21:18:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.