In file pac_utils.h line 339 str_replace.
char *tmporig = malloc(strlen(orig) + 1); // Copy of orig that we work with
The variable tmporig is allocated but never freed or returned, this cause a memory leak in pacparser_find_proxy (and probably some other APIs).
Adding free(tmporig) in the end of the function will solve this leak.
Thank you.
In file pac_utils.h line 339 str_replace.
char *tmporig = malloc(strlen(orig) + 1); // Copy of orig that we work with
The variable tmporig is allocated but never freed or returned, this cause a memory leak in pacparser_find_proxy (and probably some other APIs).
Adding free(tmporig) in the end of the function will solve this leak.
Thank you.