using Varnish alloc and free macros