Skip to content

Commit

Permalink
tool_operhlp.c: fix add_file_name_to_url() OOM handling
Browse files Browse the repository at this point in the history
  • Loading branch information
yangtse committed Jul 29, 2013
1 parent 8693bbd commit 9a5c2d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tool_operhlp.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ char *add_file_name_to_url(CURL *curl, char *url, const char *filename)

url = urlbuffer; /* use our new URL instead! */
}
else
Curl_safefree(url);
}
return url;
}
Expand Down

0 comments on commit 9a5c2d8

Please sign in to comment.