utils.muxer: expect specific clock class properties to mux
[babeltrace.git] / cli / babeltrace-cfg-cli-args.c
index 68d381466e2bafd62afe407e4103cb34e18b4d93..643d824d2b56f9a42a74f708ed257fa0ca1c6f9d 100644 (file)
@@ -697,6 +697,14 @@ void plugin_comp_cls_names(const char *arg, char **name, char **plugin,
        goto end;
 
 error:
+       if (name) {
+               *name = NULL;
+       }
+
+       *plugin = NULL;
+       *comp_cls = NULL;
+
+end:
        if (gs_name) {
                g_string_free(gs_name, TRUE);
        }
@@ -709,14 +717,10 @@ error:
                g_string_free(gs_comp_cls, TRUE);
        }
 
-       if (name) {
-               *name = NULL;
+       if (gs_comp_cls_type) {
+               g_string_free(gs_comp_cls_type, TRUE);
        }
 
-       *plugin = NULL;
-       *comp_cls = NULL;
-
-end:
        return;
 }
 
This page took 0.023258 seconds and 4 git commands to generate.