Skip to content

Commit

Permalink
fixup free the extracted component again
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed May 13, 2024
1 parent 257e35e commit 0ea8756
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion trurl.c
Original file line number Diff line number Diff line change
Expand Up @@ -930,8 +930,10 @@ static const struct var *setone(CURLU *uh, const char *setline,
if(conditional) {
char *piece;
rc = curl_url_get(uh, v->part, &piece, 0);
if(!rc)
if(!rc) {
skip = true;
curl_free(piece);
}
}

if(!skip)
Expand Down

0 comments on commit 0ea8756

Please sign in to comment.