[sr-dev] git:master:df83103b: core: fix double free on clearing hdr

Dragos Oancea dragos.oancea at athonet.com
Mon Aug 22 13:25:48 CEST 2016


Module: kamailio
Branch: master
Commit: df83103bb4756b0a3c3e42927396f78aa8210ec4
URL: https://github.com/kamailio/kamailio/commit/df83103bb4756b0a3c3e42927396f78aa8210ec4

Author: Dragos Oancea <dragos.oancea at athonet.com>
Committer: Dragos Oancea <dragos.oancea at athonet.com>
Date: 2016-08-22T09:58:07+02:00

core: fix double free on clearing hdr

---

Modified: parser/hf.c

---

Diff:  https://github.com/kamailio/kamailio/commit/df83103bb4756b0a3c3e42927396f78aa8210ec4.diff
Patch: https://github.com/kamailio/kamailio/commit/df83103bb4756b0a3c3e42927396f78aa8210ec4.patch

---

diff --git a/parser/hf.c b/parser/hf.c
index 2ff94d0..4b82fbe 100644
--- a/parser/hf.c
+++ b/parser/hf.c
@@ -215,6 +215,7 @@ void free_hdr_field_lst(struct hdr_field* hf)
 		hf=hf->next;
 		clean_hdr_field(foo);
 		pkg_free(foo);
+		foo = 0;
 	}
 }
 




More information about the sr-dev mailing list