git: kgdb: Fix double-free bug
Francois Tigeot
ftigeot at crater.dragonflybsd.org
Sun Jan 1 06:10:08 PST 2012
commit 7f357fef10b5ba09ef6123cf559206c73e3d290c
Author: John Marino <dragonflybsd at marino.st>
Date: Sun Jan 1 13:00:29 2012 +0100
kgdb: Fix double-free bug
It was a mistake to reuse target sections for each inferior. Leaving the
default section for each program space eliminates the redundant xfrees.
The exec.c function "resize_table_sections" code was painful to look at with
unused variables and unnecessary memory reallocations, so it was altered
at the same time.
Summary of changes:
contrib/gdb-7/README.DRAGONFLY | 1 +
contrib/gdb-7/gdb/exec.c | 5 +++--
gnu/usr.bin/gdb/kgdb/trgt.c | 2 --
3 files changed, 4 insertions(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7f357fef10b5ba09ef6123cf559206c73e3d290c
--
DragonFly BSD source repository
More information about the Commits
mailing list