mesa: use util_strdup() macro in u_debug_symbol.c
authorBrian Paul <brianp@vmware.com>
Tue, 17 Oct 2017 19:59:03 +0000 (13:59 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 23 Oct 2017 21:10:38 +0000 (15:10 -0600)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/util/u_debug_symbol.c

index 4b555238644fd16b9b5f9b5135df3c01cbfc2831..847604304892a80d8c5f5005a9f4137e7445a27b 100644 (file)
@@ -309,7 +309,7 @@ debug_symbol_name_cached(const void *addr)
    {
       char buf[1024];
       debug_symbol_name(addr, buf, sizeof(buf));
-      name = strdup(buf);
+      name = util_strdup(buf);
 
       util_hash_table_set(symbols_hash, (void*)addr, (void*)name);
    }