Fix memory corruption in Guile command interface
authorAndy Wingo <wingo@igalia.com>
Wed, 11 Mar 2015 13:25:29 +0000 (14:25 +0100)
committerAndy Wingo <wingo@igalia.com>
Wed, 11 Mar 2015 13:25:29 +0000 (14:25 +0100)
commit84a4591a7ba0c83c165cde85898086e9a4019b0d
tree1ca2ffbf25ebd9af69d9bff4c34aa530dddd0c42
parent85642ba08c459bb2f9d1e7beffa1871c9a93ca66
Fix memory corruption in Guile command interface

Re-registering a command will delete previous commands of the same name,
running the destroyer for the command object.  The Guile destroyer
incorrectly tried to xfree the name and other strings, which is invalid
as they are on the GC heap.

gdb/ChangeLog:

* guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
other strings, as these are on the GC'd heap, and will be
collected along with the smob.
gdb/ChangeLog
gdb/guile/scm-cmd.c
This page took 0.038075 seconds and 4 git commands to generate.