]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
support: Free gdb_script_name
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 12 May 2021 04:36:32 +0000 (10:06 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 13 May 2021 02:37:23 +0000 (08:07 +0530)
Identified by static analysis.

support/support_test_main.c

index cb725122260afbf602c657dbf627f4fb01b9731e..07e3cdd173cecfc0bf0293010acd2900ddb578be 100644 (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.  */