Commit 41b0c3983e69073b3ec02955d8f748941c6e99ef

Con Kolivas 2014-03-29T12:00:36

Minor correctness fix for unnecessary free

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/util.c b/util.c
index a593832..1bca10f 100644
--- a/util.c
+++ b/util.c
@@ -343,9 +343,9 @@ json_t *json_web_config(const char *url)
 		applog(LOG_ERR, "JSON config decode of '%s' failed(%d): %s", url,
 		       err.line, err.text);
 	}
+	databuf_free(&all_data);
 
 c_out:
-	databuf_free(&all_data);
 	return val;
 }