gdb/
[deliverable/binutils-gdb.git] / gdb / remote.c
index 4c58abb4d2e25be7faa8d2bf8a0bd705b8418809..e2672d3fc873725f2494e9bbcd629a6d4cdace30 100644 (file)
@@ -865,6 +865,9 @@ add_packet_config_cmd (struct packet_config *config, const char *name,
                                set_remote_protocol_packet_cmd,
                                show_remote_protocol_packet_cmd,
                                &remote_set_cmdlist, &remote_show_cmdlist);
+  /* The command code copies the documentation strings.  */
+  xfree (set_doc);
+  xfree (show_doc);
   /* set/show remote NAME-packet {auto,on,off} -- legacy.  */
   if (legacy)
     {
This page took 0.024751 seconds and 4 git commands to generate.