Commit 0134928b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

https: leak on alloc error

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