That's a very good point. Actually in our code only in one place (out of about 5) pcre_free() was used instead of free(). Fixing all of those :)