forked from loafle/openapi-generator-original
rollback curl_list_free keyword (#11677)
This commit is contained in:
parent
872199974d
commit
79970228e6
@ -530,7 +530,7 @@ void apiClient_invoke(apiClient_t *apiClient,
|
|||||||
|
|
||||||
res = curl_easy_perform(handle);
|
res = curl_easy_perform(handle);
|
||||||
|
|
||||||
curl_slist_freeList_all(headers);
|
curl_slist_free_all(headers);
|
||||||
|
|
||||||
free(targetUrl);
|
free(targetUrl);
|
||||||
|
|
||||||
|
@ -299,7 +299,7 @@ static bool {{nickname}}Helper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = {{nickname}}Processor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = {{nickname}}Processor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
|
@ -45,7 +45,7 @@ public:
|
|||||||
|
|
||||||
~RequestInfo()
|
~RequestInfo()
|
||||||
{
|
{
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (this->p_chunk) {
|
if (this->p_chunk) {
|
||||||
if((this->p_chunk)->memory) {
|
if((this->p_chunk)->memory) {
|
||||||
free((this->p_chunk)->memory);
|
free((this->p_chunk)->memory);
|
||||||
|
@ -447,7 +447,7 @@ void apiClient_invoke(apiClient_t *apiClient,
|
|||||||
|
|
||||||
res = curl_easy_perform(handle);
|
res = curl_easy_perform(handle);
|
||||||
|
|
||||||
curl_slist_freeList_all(headers);
|
curl_slist_free_all(headers);
|
||||||
|
|
||||||
free(targetUrl);
|
free(targetUrl);
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ static bool addPetHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = addPetProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = addPetProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -274,7 +274,7 @@ static bool deletePetHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = deletePetProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = deletePetProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -418,7 +418,7 @@ static bool findPetsByStatusHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = findPetsByStatusProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = findPetsByStatusProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -562,7 +562,7 @@ static bool findPetsByTagsHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = findPetsByTagsProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = findPetsByTagsProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -714,7 +714,7 @@ static bool getPetByIdHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = getPetByIdProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = getPetByIdProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -852,7 +852,7 @@ static bool updatePetHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = updatePetProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = updatePetProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -982,7 +982,7 @@ static bool updatePetWithFormHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = updatePetWithFormProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = updatePetWithFormProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -1134,7 +1134,7 @@ static bool uploadFileHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = uploadFileProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = uploadFileProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
|
@ -45,7 +45,7 @@ public:
|
|||||||
|
|
||||||
~RequestInfo()
|
~RequestInfo()
|
||||||
{
|
{
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (this->p_chunk) {
|
if (this->p_chunk) {
|
||||||
if((this->p_chunk)->memory) {
|
if((this->p_chunk)->memory) {
|
||||||
free((this->p_chunk)->memory);
|
free((this->p_chunk)->memory);
|
||||||
|
@ -130,7 +130,7 @@ static bool deleteOrderHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = deleteOrderProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = deleteOrderProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -254,7 +254,7 @@ static bool getInventoryHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = getInventoryProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = getInventoryProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -406,7 +406,7 @@ static bool getOrderByIdHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = getOrderByIdProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = getOrderByIdProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -565,7 +565,7 @@ static bool placeOrderHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = placeOrderProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = placeOrderProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
|
@ -137,7 +137,7 @@ static bool createUserHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = createUserProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = createUserProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -286,7 +286,7 @@ static bool createUsersWithArrayInputHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = createUsersWithArrayInputProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = createUsersWithArrayInputProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -435,7 +435,7 @@ static bool createUsersWithListInputHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = createUsersWithListInputProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = createUsersWithListInputProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -565,7 +565,7 @@ static bool deleteUserHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = deleteUserProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = deleteUserProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -717,7 +717,7 @@ static bool getUserByNameHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = getUserByNameProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = getUserByNameProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -866,7 +866,7 @@ static bool loginUserHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = loginUserProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = loginUserProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -990,7 +990,7 @@ static bool logoutUserHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = logoutUserProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = logoutUserProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
@ -1133,7 +1133,7 @@ static bool updateUserHelper(char * accessToken,
|
|||||||
mBody, headerList, p_chunk, &code, errormsg);
|
mBody, headerList, p_chunk, &code, errormsg);
|
||||||
bool retval = updateUserProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
bool retval = updateUserProcessor(*p_chunk, code, errormsg, userData,reinterpret_cast<void(*)()>(handler));
|
||||||
|
|
||||||
curl_slist_freeList_all(headerList);
|
curl_slist_free_all(headerList);
|
||||||
if (p_chunk) {
|
if (p_chunk) {
|
||||||
if(p_chunk->memory) {
|
if(p_chunk->memory) {
|
||||||
free(p_chunk->memory);
|
free(p_chunk->memory);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user