commit b07649844986a31ed1720dab9b3717b7fe315b9f from: Omar Polo via: Thomas Adam date: Fri Sep 02 15:54:01 2022 UTC gotwebd: free qs->headref before overwriting it commit - 8463025419989fa48e0b637d82db3c9c11119aaf commit + b07649844986a31ed1720dab9b3717b7fe315b9f blob - ffabc99ee4368c91f33e9d6c1dd010f6f07af62d blob + 94c7c9cf35b2a72b7e964ac7bb590c20b6e9b143 --- 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",