Documentation for haproxy filters

Any documentation on haproxy filters and any sample working filter code ? My current haproxy version is 2.6.

I found the standard haproxy documentation on filters, but wanted to check if there are more examples as my filter is running into memory leaks/subsequent crashes and wanted to refer back to any examples.