[CDRIVER-2680] Ignore NULL argument to any "destroy" function Created: 02/Jun/18  Updated: 28/Oct/23  Resolved: 04/Jun/18

Status: Closed
Project: C Driver
Component/s: libbson, libmongoc
Affects Version/s: None
Fix Version/s: 1.11.0

Type: Improvement Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible

 Description   

Some "destroy" functions like mongoc_client_destroy ignore NULL arguments, others like mongoc_database_destroy will abort. Ignore NULL arguments to all "destroy" functions and document it.



 Comments   
Comment by Githook User [ 06/Jun/18 ]

Author:

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

Message: CDRIVER-2680 ignore NULL argument to destroy funcs
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/81347a8b1a2d96755902fac7e6c1f98a628fe139

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