[sr-dev] git:4.1: app_perl: added mechanism to avoid leaks specific to persistent perl interpreter