* breakpoint.h (struct breakpoint): Add comment to
authorKeith Seitz <keiths@redhat.com>
Wed, 20 Mar 2013 22:17:18 +0000 (22:17 +0000)
committerKeith Seitz <keiths@redhat.com>
Wed, 20 Mar 2013 22:17:18 +0000 (22:17 +0000)
extra_string indicating that this member is mallod'd.
* breakpoint.c (base_breakpoint_dtor): Free extra_string.

gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h

index aaad736d9d13b0689de9d805469dc5e3ed084919..3211a431649809066157728bd241396968fb5a4a 100644 (file)
@@ -1,3 +1,9 @@
+2013-03-20  Keith Seitz  <keiths@redhat.com>
+
+       * breakpoint.h (struct breakpoint): Add comment to
+       extra_string indicating that this member is mallod'd.
+       * breakpoint.c (base_breakpoint_dtor): Free extra_string.
+
 2013-03-20  Pedro Alves  <palves@redhat.com>
 
        PR gdb/15289
index 0ff4683362064a9a3d7244202eebb06557ccc781..c844187467d2b38eacf491349076c87ada04b79f 100644 (file)
@@ -12788,6 +12788,7 @@ base_breakpoint_dtor (struct breakpoint *self)
 {
   decref_counted_command_line (&self->commands);
   xfree (self->cond_string);
+  xfree (self->extra_string);
   xfree (self->addr_string);
   xfree (self->filter);
   xfree (self->addr_string_range_end);
index 7a2c629dfe157802188af844d9c4f21371ab78e6..68f3ed9abeb0d755c8dc302c896da036807f97e3 100644 (file)
@@ -726,7 +726,8 @@ struct breakpoint
        there is no condition.  */
     char *cond_string;
 
-    /* String form of extra parameters, or NULL if there are none.  */
+    /* String form of extra parameters, or NULL if there are none.
+     Malloc'd.  */
     char *extra_string;
 
     /* Holds the address of the related watchpoint_scope breakpoint
This page took 0.053095 seconds and 4 git commands to generate.