Browse Source

https: leak on alloc error

pull/38/head
Rémi Denis-Courmont 11 years ago
parent
commit
0134928b80
  1. 3
      modules/access/http/hpack.c

3
modules/access/http/hpack.c

@ -415,7 +415,10 @@ static int hpack_append_hdr(struct hpack_decoder *dec,
char **newtab = realloc(dec->table,
sizeof (dec->table[0]) * (dec->entries + 1));
if (newtab == NULL)
{
free(entry);
return -1;
}
dec->table = newtab;
dec->table[dec->entries] = entry;

Loading…
Cancel
Save