[CDRIVER-1548] mongoc_cursor_t's filter and opts documents aren't freed Created: 19/Sep/16  Updated: 19/Oct/16  Resolved: 19/Sep/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.5.0
Fix Version/s: 1.5.0

Type: Bug Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CXX-1041 Leak of mongoc_cursor_t.filter while ... Closed

 Description   

The C++11 driver upgraded to the 1.5.0-rc0 release on its 3.1-dev branch, and several of our builders are now red

The ASAN and Valgrind issues seem to be consistent, and point to _mongoc_cursor_cursorid_init and _mongoc_cursor_new.

Sync the C driver back to f4cfb6eb708913a1795090faecbe3196fb7b5c58 and the C++11 driver test no longer fails under valgrind. Checking out f6c6085076415150ad97fa4d0950ea991d420971 adds memory leaks. Then checking out f066f14e7c9862a843f54700c3f3f36fe11fba80 seems to change the type of leaks, but they are still present



 Comments   
Comment by Githook User [ 19/Sep/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1548 leak in find_with_opts
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/d2712d2885bc66842688d605d805bef22afac6d0

Comment by Hannes Magnusson [ 19/Sep/16 ]

Looks like what rassi spotted last Friday, cursor->filter is never destroyed

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