Skip to content

Commit

Permalink
parser: fix memory leak
Browse files Browse the repository at this point in the history
 - add Supported header to the list of headers that performs memory allocation

(cherry picked from commit b52b2b9)
  • Loading branch information
ovidiusas committed Apr 6, 2015
1 parent 087f706 commit 18c3c71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parser/hf.h
Expand Up @@ -202,6 +202,7 @@ static inline int hdr_allocs_parse(struct hdr_field* hdr)
case HDR_WWW_AUTHENTICATE_T:
case HDR_PROXY_AUTHENTICATE_T:
case HDR_ALLOW_T:
case HDR_SUPPORTED_T:
return 1;
default:
return 0;
Expand Down

0 comments on commit 18c3c71

Please sign in to comment.