diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-30 17:11:38 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-30 17:11:38 +0000 |
commit | a4e3ade070c28d8a59db0413c62720b2f89d4b7c (patch) | |
tree | f56e7becc11a521898457c9c8c3a7f745c1b8aef /gdb/varobj.c | |
parent | 95a415b69583178c93bac6b1660e5f2077962200 (diff) | |
download | gdb-a4e3ade070c28d8a59db0413c62720b2f89d4b7c.tar.gz |
fix varobj.c
c_value_of_root is missing a call to do_cleanups at one return.
This fixes the problem by removing that return and letting control
fall through.
* varobj.c (c_value_of_root): Call do_cleanups along all
return paths.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index 70ed28fc03d..d4fa6ba0cc0 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -3474,13 +3474,11 @@ c_value_of_root (struct varobj **var_handle) { new_val = evaluate_expression (var->root->exp); } - - return new_val; } do_cleanups (back_to); - return NULL; + return new_val; } static struct value * |