aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 002270f..013fcfe 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -1696,6 +1696,9 @@ release_value (struct value *val)
struct value *v;
bool released = false;
+ if (val == nullptr)
+ return value_ref_ptr ();
+
if (all_values == val)
{
all_values = val->next;