Commit Diff


commit - 6c37ad7bc12ab6573fdad7e54b1ae0a4d74e5dbf
commit + f8faf9f103c9a4869c82a3fe55658f0a065fb1c0
blob - 66f5cf734705a750a9156561f25c4f0318f2224e
blob + d7b904108bc299cb7ad3753fbb33a3660024d371
--- gotwebd/gotweb.c
+++ gotwebd/gotweb.c
@@ -472,6 +472,7 @@ qa_found:
 			}
 			break;
 		case HEADREF:
+			free((*qs)->headref);
 			(*qs)->headref = strdup(value);
 			if ((*qs)->headref == NULL) {
 				error = got_error_from_errno2("%s: strdup",