From: Brian Paul Date: Tue, 17 Oct 2017 19:59:03 +0000 (-0600) Subject: mesa: use util_strdup() macro in u_debug_symbol.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5134c0dedf455a8a8311c2c43db49ac07b3fe0ce;p=mesa.git mesa: use util_strdup() macro in u_debug_symbol.c Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/auxiliary/util/u_debug_symbol.c b/src/gallium/auxiliary/util/u_debug_symbol.c index 4b555238644..84760430489 100644 --- a/src/gallium/auxiliary/util/u_debug_symbol.c +++ b/src/gallium/auxiliary/util/u_debug_symbol.c @@ -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); }