I use gsoap client in C++ program, but it has memory leaks when calling the defined functions many times. The main codes are:
for(int i=0;i<1000000;i++){
struct soap* s = soap_new();
char* run;
soap_call_ns__run(s,url,NULL,"123",&run);
soap_destroy(s);
soap_end(s);
soap_done(s);
soap_free(s);
}
when running, the memory will rise up; I run this on Win7 system; I try it on ubuntu 16.10 and it seems there's no memory leaks.
Can anyone try it and help me ?