From c7d200400c6a8fc0428005a83cdf1ae2c87e009c Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Wed, 12 May 2021 10:06:32 +0530 Subject: [PATCH] support: Free gdb_script_name Identified by static analysis. --- support/support_test_main.c | 1 + 1 file changed, 1 insertion(+) 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. */