Browse Source

Set lp_path to NULL after free for consistency.

Con Kolivas 13 years ago
parent
commit
9609dbc42d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      util.c

+ 1 - 0
util.c

@@ -374,6 +374,7 @@ json_t *json_rpc_call(CURL *curl, const char *url,
 		}
 	} else if (hi.lp_path) {
 		free(hi.lp_path);
+		hi.lp_path = NULL;
 	}
 
 	*rolltime = hi.has_rolltime;