[CDRIVER-1882] mongoc_client_new () leaks on failure Created: 25/Oct/16  Updated: 25/Oct/16  Resolved: 25/Oct/16

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

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


 Description   

[2016/10/24 16:46:17.984] ==94272== 4,930 (408 direct, 4,522 indirect) bytes in 1 blocks are definitely lost in loss record 345 of 346
[2016/10/24 16:46:17.984] ==94272==    at 0x4C2CC70: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
[2016/10/24 16:46:17.984] ==94272==    by 0x4E57F2B: bson_malloc0 (bson-memory.c:105)
[2016/10/24 16:46:17.984] ==94272==    by 0x4ACD2A: mongoc_topology_new (mongoc-topology.c:163)
[2016/10/24 16:46:17.984] ==94272==    by 0x47D7B1: mongoc_client_new (mongoc-client.c:634)
[2016/10/24 16:46:17.984] ==94272==    by 0x427A29: test_mongoc_client_ssl_disabled (test-mongoc-client.c:1624)
[2016/10/24 16:46:17.984] ==94272==    by 0x476587: TestSuite_AddHelper (TestSuite.c:333)
[2016/10/24 16:46:17.984] ==94272==    by 0x476BF2: TestSuite_RunTest (TestSuite.c:602)
[2016/10/24 16:46:17.984] ==94272==    by 0x4774A8: TestSuite_RunSerial (TestSuite.c:868)
[2016/10/24 16:46:17.984] ==94272==    by 0x477812: TestSuite_Run (TestSuite.c:949)
[2016/10/24 16:46:17.984] ==94272==    by 0x4131D3: main (test-libmongoc.c:1844)



 Comments   
Comment by Githook User [ 25/Oct/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1882 mongoc_client_new () leaks on failure
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/c67b81ef117019813ff34dd6857e6cb891f9ac83

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