[C][Client][Clang Static Analyzer] Remove the useless free operation for (#7309)

buffContent
This commit is contained in:
Hui Yu
2020-08-29 00:17:55 +08:00
committed by GitHub
parent f681016ffd
commit 2c65605289
2 changed files with 0 additions and 8 deletions

View File

@@ -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 {

View File

@@ -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 {