You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: