trimmer: free GMatchInfo object in set_bound_from_str
[babeltrace.git] / src / plugins / utils / trimmer / trimmer.c
index a3016212219660fe341a7a7722232f8a604c06be..c156c0fe7c2f432cb7308f0187677407a01050b5 100644 (file)
@@ -428,6 +428,8 @@ int set_bound_from_str(struct trimmer_comp *trimmer_comp,
        ret = -1;
 
 end:
+       g_match_info_free(match_info);
+
        return ret;
 }
 
@@ -527,6 +529,7 @@ enum bt_param_validation_status validate_bound_type(
        return status;
 }
 
+static
 struct bt_param_validation_map_value_entry_descr trimmer_params[] = {
        { "gmt", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .type = BT_VALUE_TYPE_BOOL } },
        { "begin", BT_PARAM_VALIDATION_MAP_VALUE_ENTRY_OPTIONAL, { .validation_func = validate_bound_type } },
This page took 0.025136 seconds and 4 git commands to generate.