aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-lang.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-02-15 16:09:35 -0700
committerAlan Modra <amodra@gmail.com>2023-02-19 13:17:41 +1030
commit85fc5801281d38897b652b298d35074b7b73ed3a (patch)
treeca0d82b6478f18654299a5f759adec85610d66e6 /gdb/rust-lang.h
parentcd414f90c340145d811259d10e84b126d73777d0 (diff)
downloadgdb-85fc5801281d38897b652b298d35074b7b73ed3a.zip
gdb-85fc5801281d38897b652b298d35074b7b73ed3a.tar.gz
gdb-85fc5801281d38897b652b298d35074b7b73ed3a.tar.bz2
Avoid memory leak in chew
An earlier patch of mine introduced a memory leak in chew. The bug was that the new "variable" word didn't free the following word. This patch fixes it by arranging to transfer ownership of the name to the variable itself. * doc/chew.c (add_variable): New function, from add_intrinsic_variable. (add_intrinsic_variable): Call add_variable. (compile): Call add_variable.
Diffstat (limited to 'gdb/rust-lang.h')
0 files changed, 0 insertions, 0 deletions