with new version I get a memoryleak
pcre_study() alloc memory, what never has set free again aslong there was no errormessage
You are doing the free call in branch where the object to free is already NULL.
if (pe != NULL && errormsg != NULL)
elem->pRegExpExtra = pe;
sorry too fast
pe ist not NULL but errormsg is NULL
did xyou check the addresses?
I noted that, and compare with the leak infos.
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?
Log in to post a comment.