Commit 9609dbc42dcdbfa6ad4708e4dc3dc4b080d09cbf

Con Kolivas 2012-04-20T21:09:37

Set lp_path to NULL after free for consistency.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/util.c b/util.c
index 5257f5c..b65ba12 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;