Browse Source

core: fix double free on clearing hdr

Dragos Oancea 9 years ago
parent
commit
df83103bb4
1 changed files with 1 additions and 0 deletions
  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;
 		hf=hf->next;
 		clean_hdr_field(foo);
 		clean_hdr_field(foo);
 		pkg_free(foo);
 		pkg_free(foo);
+		foo = 0;
 	}
 	}
 }
 }