Module: sip-router
Branch: 3.1
Commit: 217834b49ef8734d23bc914b1caa6c5357aeff42
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=217834b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Feb 28 11:17:10 2011 +0100
core: free SE header parsed structure
- use the generic free framework for headers
(cherry picked from commit 469650e0a904331b07f8713baab6d7f19027ee48)
---
parser/hf.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/parser/hf.c b/parser/hf.c
index 8863a10..207a7ab 100644
--- a/parser/hf.c
+++ b/parser/hf.c
@@ -210,6 +210,12 @@ void clean_hdr_field(struct hdr_field* hf)
break;
case HDR_SESSIONEXPIRES_T:
+ if(*h_parsed) {
+ ((hf_parsed_t*)(*h_parsed))->hfree(*h_parsed);
+ *h_parsed = 0;
+ }
+ break;
+
case HDR_MIN_SE_T:
case HDR_ACCEPTCONTACT_T:
case HDR_ALLOWEVENTS_T: