aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>2018-12-31 18:07:26 +0100
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>2019-01-01 20:26:18 +0100
commit5b38f9c16e5b3f5f4b5d7772bfef59b1c97e2d05 (patch)
treeed9e10767d7c8f308fb1cdd058e4feaf1cfe7236 /gdb/ChangeLog
parent827041555ac443bd57340060f3e034fd7b199dd8 (diff)
downloadgdb-5b38f9c16e5b3f5f4b5d7772bfef59b1c97e2d05.zip
gdb-5b38f9c16e5b3f5f4b5d7772bfef59b1c97e2d05.tar.gz
gdb-5b38f9c16e5b3f5f4b5d7772bfef59b1c97e2d05.tar.bz2
Fix leak in print_one_catch_syscall.
The last text produced was not freed, causing the below leak (e.g. in gdb.base/catch-syscall.exp): ==24970== 56 bytes in 12 blocks are definitely lost in loss record 626 of 3,289 ==24970== at 0x4C2BE6D: malloc (vg_replace_malloc.c:309) ==24970== by 0x66B9C3F: __vasprintf_chk (vasprintf_chk.c:80) ==24970== by 0x405181: vasprintf (stdio2.h:210) ==24970== by 0x405181: xstrvprintf(char const*, __va_list_tag*) (common-utils.c:122) ==24970== by 0x40524B: xstrprintf(char const*, ...) (common-utils.c:113) ==24970== by 0x3B49DB: print_one_catch_syscall(breakpoint*, bp_location**) (break-catch-syscall.c:275) ==24970== by 0x3C698F: print_one_breakpoint_location(breakpoint*, bp_location*, int, bp_location**, int) (breakpoint.c:6076) ==24970== by 0x3C75B1: print_one_breakpoint(breakpoint*, bp_location**, int) (breakpoint.c:6373) ==24970== by 0x3C7D0E: breakpoint_1(char const*, int, int (*)(breakpoint const*)) (breakpoint.c:6571) ==24970== by 0x3C822C: info_breakpoints_command(char const*, int) (breakpoint.c:6625) 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> * break-catch-syscall.c (print_one_catch_syscall): xfree the last text.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a2f6aac..2402d73 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
+
+ * break-catch-syscall.c (print_one_catch_syscall): xfree
+ the last text.
+
2019-01-01 Joel Brobecker <brobecker@adacore.com>
* top.c (print_gdb_version): Update Copyright year in version