did xyou check the addresses?
I noted that, and compare with the leak infos.
All same.
After free() all gone.
PS it is emogh just to start and exit Winmerge.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
memoryleak pcre
You are doing the free call in branch where the object to free is already NULL.
NO!
if (pe != NULL && errormsg != NULL)
elem->pRegExpExtra = pe;
else
pcre_free(pe);
sorry too fast
pe ist not NULL but errormsg is NULL
so pcre_free(pe);
is needed!
did xyou check the addresses?
I noted that, and compare with the leak infos.
All same.
After free() all gone.
PS it is emogh just to start and exit Winmerge.
The (errormsg != NULL) should rather read (errormsg == NULL).
In both cases? Care to commit the fix?