Commit 5e3eb0af authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Remove some old dead code and a inconsequential resource leak

spotted by Coverity.
parent 5f1fab09
......@@ -1331,7 +1331,7 @@ int
http_process(struct vtclog *vl, const char *spec, int sock, int *sfd)
{
struct http *hp;
char *s, *q;
char *s;
int retval;
(void)sfd;
......@@ -1350,10 +1350,9 @@ http_process(struct vtclog *vl, const char *spec, int sock, int *sfd)
AN(hp->vsb);
s = strdup(spec);
q = strchr(s, '\0');
assert(q > s);
AN(s);
parse_string(s, http_cmds, hp, vl);
free(s);
retval = hp->fd;
VSB_delete(hp->vsb);
free(hp->rxbuf);
......
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