Memory leakage problem in atc.c file
Hi Nima,
In your atc.c file, atc_addSearch() function you are allocation memory as follows:
atc->search[atc->searchIndex] = (char*) atc_alloc(strlen(str) + 1);
However, you do not free the memory afterwards, thus, I believe this creates a memory leak, which leads a crush after some time. I'm using you gsm_v5 library that uses this library, so this problem affects it.
To solve this, I think you can put the following just before the "return true"
atc_free(atc->search[atc->searchIndex]);
Regards, Ogulcan
Hello please increase it in config file
It doesn't matter. An allocated memory has to be freed in order not to have a memory leakage. This is a rule.
Am I missing something?
this function for always search in your program. like some at-commands for ring and get new message. you don't need to delete it.