Code

integrated json support in rrdtool xport with inspiration from Erik Kastner and Micha...
[rrdtool-all.git] / program / src / rrd_xport.c
index aecd7f373bd483f77495dbf38cb075344bcbc3a9..5ee0fdfb1daa51174bb3fc825293884bdbf0ef58 100644 (file)
@@ -65,6 +65,7 @@ int rrd_xport(
         {"maxrows", required_argument, 0, 'm'},
         {"step", required_argument, 0, 261},
         {"enumds", no_argument, 0, 262},    /* these are handled in the frontend ... */
+        {"json", no_argument, 0, 263},    /* these are handled in the frontend ... */
         {"daemon", required_argument, 0, 'd'},
         {0, 0, 0, 0}
     };
@@ -263,6 +264,7 @@ int rrd_xport_fn(
                 while (--j > -1)
                     free(legend_list[j]);
                 free(legend_list);
+                free(step_list);
                 rrd_set_error("malloc xport legend entry");
                 return (-1);
             }