[CDRIVER-2268] Coverity analysis defect 102106: Double free Created: 07/Sep/17  Updated: 28/Oct/23  Resolved: 07/Sep/17

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

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


 Description   

Memory is deallocated more than once

Defect 102106 (STATIC_C)
Checker USE_AFTER_FREE (subcategory double_free)
File: /src/mongoc/mongoc-cluster.c
Function _mongoc_cluster_auth_node_cr
/src/mongoc/mongoc-cluster.c, line: 836
Calling "mongoc_server_stream_cleanup" frees pointer "server_stream" which has already been freed.

       mongoc_server_stream_cleanup (server_stream);



 Comments   
Comment by Githook User [ 07/Sep/17 ]

Author:

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

Message: CDRIVER-2268 Coverity analysis defect 102106: Double free
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/09cde10e47858484867c3af3a25b2fb524debfff

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