-
-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels