Fixed several memory leaks in pcregrep.