瀏覽代碼

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;
 	}
 }