Merge pull request #1365 from HowJMay/remove_free

feat: Remove unecessary if statement
pull/1371/head
Roger Light 6 years ago committed by GitHub
commit b4ed99ceaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1427,11 +1427,11 @@ static int mosquitto__parse_socks_url(struct mosq_config *cfg, char *url)
return 0; return 0;
cleanup: cleanup:
if(username_or_host) free(username_or_host); free(username_or_host);
if(username) free(username); free(username);
if(password) free(password); free(password);
if(host) free(host); free(host);
if(port) free(port); free(port);
return 1; return 1;
} }
#endif #endif

Loading…
Cancel
Save