Do not check `NULL` to call g_free(): g_free() accepts `NULL`
[babeltrace.git] / src / plugins / lttng-utils / debug-info / trace-ir-mapping.c
index ec074d5dc56a65c6cd831744eec98733d621efa6..dfef517f16e827eb124180335013c6e7a0699332 100644 (file)
@@ -617,9 +617,7 @@ void trace_ir_metadata_maps_destroy(struct trace_ir_metadata_maps *maps)
                g_hash_table_destroy(maps->clock_class_map);
        }
 
-       if (maps->fc_resolving_ctx) {
-               g_free(maps->fc_resolving_ctx);
-       }
+       g_free(maps->fc_resolving_ctx);
 
        if (maps->output_trace_class) {
                bt_trace_class_put_ref(maps->output_trace_class);
@@ -656,9 +654,7 @@ void trace_ir_maps_destroy(struct trace_ir_maps *maps)
                return;
        }
 
-       if (maps->debug_info_field_class_name) {
-               g_free(maps->debug_info_field_class_name);
-       }
+       g_free(maps->debug_info_field_class_name);
 
        if (maps->data_maps) {
                g_hash_table_destroy(maps->data_maps);
This page took 0.023657 seconds and 4 git commands to generate.