DragonFly BSD
DragonFly commits List (threaded) for 2012-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kgdb: Fix double-free bug

From: Francois Tigeot <ftigeot@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 1 Jan 2012 06:10:08 -0800 (PST)

commit 7f357fef10b5ba09ef6123cf559206c73e3d290c
Author: John Marino <dragonflybsd@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(-)


DragonFly BSD source repository

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]