[CDRIVER-2252] Coverity analysis defect 101971: Resource leak Created: 24/Aug/17 Updated: 28/Oct/23 Resolved: 29/Aug/17 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.8.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Coverity Collector User | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Leak of memory or pointers to system resources Defect 101971 (STATIC_C)
/src/mongoc/mongoc-client.c, line: 1846
|
| Comments |
| Comment by Githook User [ 29/Aug/17 ] |
|
Author: {'name': 'Hannes Magnusson', 'username': 'bjori', 'email': 'bjori@php.net'}Message: Merge branch 'master' of github.com:mongodb/mongo-c-driver
|
| Comment by Githook User [ 29/Aug/17 ] |
|
Author: {'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis', 'email': 'jesse@mongodb.com'}Message: Very minor leak: the topology must include incompatible servers, so no |
| Comment by A. Jesse Jiryu Davis [ 29/Aug/17 ] |
|
This is very rare and low-impact: the topology would have to be "incompatible" (containing servers too old or too new for this C Driver version) and an application would have to repeatedly call the deprecated and useless mongoc_client_kill_cursor, leaking one mongoc_read_prefs_t struct per call. |