Leak of memory or pointers to system resources
Defect 102105 (STATIC_C)
Checker RESOURCE_LEAK (subcategory none)
File: /src/mongoc/mongoc-topology.c
Function mongoc_topology_new
/src/mongoc/mongoc-topology.c, line: 283
Assigning: "hl" = storage returned from "_mongoc_client_get_srv(prefixed_service, &topology->scanner->error)".
hl = _mongoc_client_get_srv (prefixed_service, &topology->scanner->error);
/src/mongoc/mongoc-topology.c, line: 312
Overwriting "hl" in "hl = hl->next" leaks the storage that "hl" points to.
hl = hl->next;