Skip to content

Commit 7c49ae2

Browse files
authored
CDRIVER-4698 remove excess duplicate call (#1357)
This is not a bug. The duplicate call to `_mongoc_http_response_cleanup` does not currently result in a double free. Nonetheless, the duplicate call may result in a double free if the implementation of `_mongoc_http_send` changes in the future.
1 parent eea39b1 commit 7c49ae2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/libmongoc/src/mongoc/mcd-azure.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ mcd_azure_access_token_from_imds (mcd_azure_access_token *const out,
180180
&req, opt_imds_host, opt_port, opt_extra_headers);
181181

182182
if (!_mongoc_http_send (&req.req, 3 * 1000, false, NULL, &resp, error)) {
183-
_mongoc_http_response_cleanup (&resp);
184183
goto fail;
185184
}
186185

0 commit comments

Comments
 (0)