ad1a97e
From: Ovidiu Sas <osas@voipembedded.com>
ad1a97e
Date: Mon, 30 Mar 2015 22:10:02 -0400
ad1a97e
Subject: [PATCH] parser: fix memory leak  - add Supported header to the list
ad1a97e
 of headers that performs memory allocation
ad1a97e
ad1a97e
ad1a97e
diff --git a/parser/hf.h b/parser/hf.h
ad1a97e
index f2b9f14..c8b67d4 100644
ad1a97e
--- a/parser/hf.h
ad1a97e
+++ b/parser/hf.h
ad1a97e
@@ -204,6 +204,7 @@ static inline int hdr_allocs_parse(struct hdr_field* hdr)
ad1a97e
 		case HDR_WWW_AUTHENTICATE_T:
ad1a97e
 		case HDR_PROXY_AUTHENTICATE_T:
ad1a97e
 		case HDR_ALLOW_T:
ad1a97e
+		case HDR_SUPPORTED_T:
ad1a97e
 			return 1;
ad1a97e
 		default:
ad1a97e
 			return 0;