varnish: fix some leaks in error paths