[CDRIVER-526] Memory leak in mongoc_client_get_database_names function Created: 10/Feb/15  Updated: 19/Oct/16  Resolved: 10/Mar/15

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

Type: Bug Priority: Major - P3
Reporter: Tatjana Assignee: Mira Carey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible

 Description   

Memory leak in mongoc_client_get_database_names function.

mongoc_cursor_t *cursor is nor freed after use. Should be added:
in file mongoc-client.c (after 1322 line)

mongoc_cursor_destroy (cursor);



 Comments   
Comment by Mira Carey [ 26/Feb/15 ]

Thanks for noticing this. The fix will go in for 1.1.2

Regards,
Jason

Comment by Githook User [ 26/Feb/15 ]

Author:

{u'username': u'hanumantmk', u'name': u'Jason Carey (hanumantmk)', u'email': u'jcarey@argv.me'}

Message: CDRIVER-526 memory leak in get_database_names()

Fix a memory leak in mongoc_client_get_database_names()
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/fa024087f06176d29db2c7717f3ab5ebae7cc1f7

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