Skip to content

Commit

Permalink
Merge pull request #1365 from HowJMay/remove_free
Browse files Browse the repository at this point in the history
feat: Remove unecessary if statement
  • Loading branch information
ralight committed Aug 1, 2019
2 parents a22ccbd + b2aed5c commit b4ed99c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/client_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -1427,11 +1427,11 @@ static int mosquitto__parse_socks_url(struct mosq_config *cfg, char *url)

return 0;
cleanup:
if(username_or_host) free(username_or_host);
if(username) free(username);
if(password) free(password);
if(host) free(host);
if(port) free(port);
free(username_or_host);
free(username);
free(password);
free(host);
free(port);
return 1;
}
#endif
Expand Down

0 comments on commit b4ed99c

Please sign in to comment.