소스 검색

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