Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ void apiClient_invoke(apiClient_t *apiClient,

res = curl_easy_perform(handle);

curl_slist_freeList_all(headers);
curl_slist_free_all(headers);

free(targetUrl);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ static bool {{nickname}}Helper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public:

~RequestInfo()
{
curl_slist_freeList_all(headerList);
curl_slist_free_all(headerList);
if (this->p_chunk) {
if((this->p_chunk)->memory) {
free((this->p_chunk)->memory);
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/c/src/apiClient.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ void apiClient_invoke(apiClient_t *apiClient,

res = curl_easy_perform(handle);

curl_slist_freeList_all(headers);
curl_slist_free_all(headers);

free(targetUrl);

Expand Down
16 changes: 8 additions & 8 deletions samples/client/petstore/cpp-tizen/src/PetManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ static bool addPetHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -274,7 +274,7 @@ static bool deletePetHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -418,7 +418,7 @@ static bool findPetsByStatusHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -562,7 +562,7 @@ static bool findPetsByTagsHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -714,7 +714,7 @@ static bool getPetByIdHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -852,7 +852,7 @@ static bool updatePetHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -982,7 +982,7 @@ static bool updatePetWithFormHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -1134,7 +1134,7 @@ static bool uploadFileHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/cpp-tizen/src/RequestInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class RequestInfo {

~RequestInfo()
{
curl_slist_freeList_all(headerList);
curl_slist_free_all(headerList);
if (this->p_chunk) {
if((this->p_chunk)->memory) {
free((this->p_chunk)->memory);
Expand Down
8 changes: 4 additions & 4 deletions samples/client/petstore/cpp-tizen/src/StoreManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static bool deleteOrderHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -254,7 +254,7 @@ static bool getInventoryHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -406,7 +406,7 @@ static bool getOrderByIdHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -565,7 +565,7 @@ static bool placeOrderHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down
16 changes: 8 additions & 8 deletions samples/client/petstore/cpp-tizen/src/UserManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static bool createUserHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -286,7 +286,7 @@ static bool createUsersWithArrayInputHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -435,7 +435,7 @@ static bool createUsersWithListInputHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -565,7 +565,7 @@ static bool deleteUserHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -717,7 +717,7 @@ static bool getUserByNameHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -866,7 +866,7 @@ static bool loginUserHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -990,7 +990,7 @@ static bool logoutUserHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down Expand Up @@ -1133,7 +1133,7 @@ static bool updateUserHelper(char * accessToken,
mBody, headerList, p_chunk, &code, errormsg);
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->memory) {
free(p_chunk->memory);
Expand Down