Do not check `NULL` to call g_free(): g_free() accepts `NULL`
[babeltrace.git] / src / plugins / ctf / fs-src / query.c
index 1ba84b4a8393200f566cf70b79f92b28722c0da2..b9811b1990a82af700576afe13754e6fb55ac795 100644 (file)
@@ -357,9 +357,7 @@ int populate_stream_info(struct ctf_fs_ds_file_group *group,
        }
 
 end:
-       if (port_name) {
-               g_free(port_name);
-       }
+       g_free(port_name);
        bt_value_put_ref(file_paths);
        return ret;
 }
This page took 0.023949 seconds and 4 git commands to generate.