From 9609dbc42dcdbfa6ad4708e4dc3dc4b080d09cbf Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 20 Apr 2012 21:09:37 +1000 Subject: [PATCH] Set lp_path to NULL after free for consistency. --- util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util.c b/util.c index 5257f5c5..b65ba12d 100644 --- a/util.c +++ b/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;