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 4b55523..8476043 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);
    }