mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-03-10 15:51:38 +00:00
[C][Client][Clang Static Analyzer] Remove the useless free operation for (#7309)
buffContent
This commit is contained in:
@@ -520,10 +520,6 @@ void apiClient_invoke(apiClient_t *apiClient,
|
||||
|
||||
free(targetUrl);
|
||||
|
||||
if(contentType != NULL) {
|
||||
free(buffContent);
|
||||
}
|
||||
|
||||
if(res == CURLE_OK) {
|
||||
curl_easy_getinfo(handle, CURLINFO_RESPONSE_CODE, &apiClient->response_code);
|
||||
} else {
|
||||
|
||||
@@ -437,10 +437,6 @@ void apiClient_invoke(apiClient_t *apiClient,
|
||||
|
||||
free(targetUrl);
|
||||
|
||||
if(contentType != NULL) {
|
||||
free(buffContent);
|
||||
}
|
||||
|
||||
if(res == CURLE_OK) {
|
||||
curl_easy_getinfo(handle, CURLINFO_RESPONSE_CODE, &apiClient->response_code);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user