Minor typo fix for bug#1192118.
Merge branch 'release_30' into release_31

Minor typo fix for bug#1192118.
Fix memory leaks in the way pcre is used.