[Syslog-ng-commit] syslog-ng--mainline: Forward port: fixed a possible SEGFAULT caused by one of the leak fixes, when output templates() are used