Fix: add_component_with_init_method_data(): freeze parameters
[babeltrace.git] / lib / graph / graph.c
index 29ebee34d545a49f7bfacb52c558233c05c375ce..b7d04b0a674b2d8fb44aa7659e9bc44e440206ca 100644 (file)
@@ -1295,6 +1295,7 @@ enum bt_graph_status add_component_with_init_method_data(
         */
        g_ptr_array_add(graph->components, component);
        bt_component_set_graph(component, graph);
+       bt_value_freeze(params);
 
        if (init_method) {
                BT_LOGD_STR("Calling user's initialization method.");
This page took 0.025687 seconds and 4 git commands to generate.