Corrected regex memory leak because of no regfree used (not libc bug then)