[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: |