Fix potential double free.

pull/2215/head
Roger Light 4 years ago
parent 0a90e62f93
commit be96d21e7b

@ -379,6 +379,7 @@ int client_config_load(struct mosq_config *cfg, int pub_or_sub, int argc, char *
}else if(loc){
fptr = fopen(loc, "rt");
free(loc);
loc = NULL;
}else{
return 1;
}

Loading…
Cancel
Save