This is definitely a real bug and I can reproduce it. Please report it to p5p, either by using "perlbug" tool or by mailing perlbug@perl.org (note that your email must contain word "perl" somewhere in the body, otherwise it may be eaten by the spam filter).
Comment on Re: Memory leak in unicode substitution