support: Free gdb_script_name

Identified by static analysis.
This commit is contained in:
Siddhesh Poyarekar 2021-05-12 10:06:32 +05:30
parent 75fe6d1a16
commit c7d200400c

View File

@ -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. */