Commit cd1f75af authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use VSB_destroy() where applicable

parent 39bcda5c
......@@ -738,7 +738,7 @@ MCF_ParamConf(enum mcf_which_e which, const char * const param,
va_end(ap);
AZ(VSB_finish(vsb));
mcf_dyn_vsb(which, pp, vsb);
VSB_delete(vsb);
VSB_destroy(&vsb);
}
/*--------------------------------------------------------------------*/
......
......@@ -755,7 +755,7 @@ VPX_Send_Proxy(int fd, int version, const struct sess *sp)
version == 2 ? VSB_QUOTE_HEX : 0);
AZ(VSB_finish(vsb2));
VSL(SLT_Debug, 999, "PROXY_HDR %s", VSB_data(vsb2));
VSB_delete(vsb2);
VSB_destroy(&vsb2);
return (r);
}
......
......@@ -44,7 +44,7 @@ main(int argc, char *argv[])
printf("\n");
VSB_clear(vsb);
}
VSB_delete(vsb);
VSB_destroy(&vsb);
printf("error is %i\n", err);
return (err);
}
......
......@@ -362,7 +362,7 @@ vmod_proxy_header(VRT_CTX, VCL_ENUM venum, VCL_IP client, VCL_IP server,
VRT_Format_Proxy(vsb, version, client, server, authority);
l = VSB_len(vsb);
h = WS_Copy(ctx->ws, VSB_data(vsb), l);
VSB_delete(vsb);
VSB_destroy(&vsb);
if (h == NULL) {
VRT_fail(ctx, "proxy_header: out of workspace");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment