Module: kamailio
Branch: master
Commit: df83103bb4756b0a3c3e42927396f78aa8210ec4
URL:
https://github.com/kamailio/kamailio/commit/df83103bb4756b0a3c3e42927396f78…
Author: Dragos Oancea <dragos.oancea(a)athonet.com>
Committer: Dragos Oancea <dragos.oancea(a)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/df83103bb4756b0a3c3e42927396f78…
Patch:
https://github.com/kamailio/kamailio/commit/df83103bb4756b0a3c3e42927396f78…
---
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;
}
}