diff options
author | Tom Tromey <tom@tromey.com> | 2016-08-03 08:27:56 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2016-08-03 09:04:08 -0600 |
commit | d10153cfc6cb319a75ceb3e3d34ac30efa17e518 (patch) | |
tree | d2336732b4fa9c37f5d09253c793764efc7c438e /gdb/python | |
parent | 8d2a0a14e53945eb260c08752654bd03a240ecf7 (diff) | |
download | gdb-d10153cfc6cb319a75ceb3e3d34ac30efa17e518.zip gdb-d10153cfc6cb319a75ceb3e3d34ac30efa17e518.tar.gz gdb-d10153cfc6cb319a75ceb3e3d34ac30efa17e518.tar.bz2 |
Avoid potential memory leak in find_frame_funname
The PR 18565 thread pointed out that, if cp_remove_params can throw
(we aren't quite sure), then find_frame_funname could leak some
memory. This patch avoids any potential issue by rearranging some
code in find_frame_funname.
Built and regtested on x86-64 Fedora 24.
2016-08-03 Tom Tromey <tom@tromey.com>
* stack.c (find_frame_funname): Avoid any possible leak in case
cp_remove_params can throw.
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions