support: Free gdb_script_name
Identified by static analysis.
This commit is contained in:
parent
75fe6d1a16
commit
c7d200400c
|
@ -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, "attach %ld\n", (long int) mypid);
|
||||||
fprintf (gdb_script, "set wait_for_debugger = 0\n");
|
fprintf (gdb_script, "set wait_for_debugger = 0\n");
|
||||||
fclose (gdb_script);
|
fclose (gdb_script);
|
||||||
|
free (gdb_script_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Wait for the debugger to set wait_for_debugger to zero. */
|
/* Wait for the debugger to set wait_for_debugger to zero. */
|
||||||
|
|
Loading…
Reference in a new issue