flt.lttng-utils.debug-info: use glib memory and string functions
[babeltrace.git] / plugins / lttng-utils / dwarf.c
index 307bd2aa733396edcaba6d19691e19e6414483d4..3c7388a57679d8af953cf1b28649a597a58a6400 100644 (file)
@@ -242,7 +242,7 @@ int bt_dwarf_die_get_name(struct bt_dwarf_die *die, char **name)
                goto error;
        }
 
-       *name = strdup(_name);
+       *name = g_strdup(_name);
        if (!*name) {
                goto error;
        }
@@ -297,7 +297,7 @@ int bt_dwarf_die_get_call_file(struct bt_dwarf_die *die, char **filename)
                goto error;
        }
 
-       *filename = strdup(_filename);
+       *filename = g_strdup(_filename);
 
        bt_dwarf_die_destroy(cu_die);
        g_free(file_attr);
This page took 0.023223 seconds and 4 git commands to generate.