浏览代码

core: fix double free on clearing hdr

Dragos Oancea 9 年之前
父节点
当前提交
df83103bb4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      parser/hf.c

+ 1 - 0
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;
 	}
 }