Explorar o código

core: fix double free on clearing hdr

Dragos Oancea %!s(int64=9) %!d(string=hai) anos
pai
achega
df83103bb4
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;
 	}
 }