Skip to content

Commit

Permalink
fixup a memleak
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Aug 27, 2024
1 parent 30f0761 commit 2451de5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trurl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1773,6 +1773,8 @@ static void singleurl(struct option *o,
curl_free(opath);
opath = cpath;
}
else
curl_free(cpath);
if(path_is_modified) {
/* set the new path */
if(curl_url_set(uh, CURLUPART_PATH, opath, 0))
Expand Down

0 comments on commit 2451de5

Please sign in to comment.