diff --git a/client/client_shared.c b/client/client_shared.c index 8fddbbb9..23ac67e9 100644 --- a/client/client_shared.c +++ b/client/client_shared.c @@ -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; }