From: Robert Pengelly Date: Wed, 11 Jun 2025 21:02:01 +0000 (+0100) Subject: Use xstrdup not strdup X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=4ebfeae88113a33a9c6be2d63dc01165e26051b7;p=slink.git Use xstrdup not strdup --- diff --git a/pe.c b/pe.c index 777c4c1..579a395 100644 --- a/pe.c +++ b/pe.c @@ -759,7 +759,7 @@ struct symbol_info *create_symbol_list (struct export_name *export_name, unsigne unsigned long i, j; module_name = state->output_filename; - name = strdup (module_name); + name = xstrdup (module_name); if ((p = strrchr (module_name, '/')) || (p = strrchr (module_name, '\\'))) {