about summary refs log tree commit diff
path: root/support
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2021-05-12 10:06:32 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-05-13 08:07:23 +0530
commitc7d200400c6a8fc0428005a83cdf1ae2c87e009c (patch)
tree110663cceab1d2fc612d7625778d2548ad99dcd7 /support
parent75fe6d1a1620d84e0e487868feba9b2c0f109610 (diff)
downloadglibc-c7d200400c6a8fc0428005a83cdf1ae2c87e009c.tar.gz
glibc-c7d200400c6a8fc0428005a83cdf1ae2c87e009c.tar.xz
glibc-c7d200400c6a8fc0428005a83cdf1ae2c87e009c.zip
support: Free gdb_script_name
Identified by static analysis.
Diffstat (limited to 'support')
-rw-r--r--support/support_test_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/support/support_test_main.c b/support/support_test_main.c
index cb72512226..07e3cdd173 100644
--- a/support/support_test_main.c
+++ b/support/support_test_main.c
@@ -221,6 +221,7 @@ run_test_function (int argc, char **argv, const struct test_config *config)
       fprintf (gdb_script, "attach %ld\n", (long int) mypid);
       fprintf (gdb_script, "set wait_for_debugger = 0\n");
       fclose (gdb_script);
+      free (gdb_script_name);
     }
 
   /* Wait for the debugger to set wait_for_debugger to zero.  */