diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ade40bd8d48..6cc163b3dee 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-02-23 Yao Qi + + * varobj-iter.h (varobj_iter_delete): Call xfree instead of + delete. + 2017-02-23 Yao Qi * varobj.c (varobj_clear_saved_item): Use delete instead of diff --git a/gdb/varobj-iter.h b/gdb/varobj-iter.h index 34182e050ab..7eed4f18454 100644 --- a/gdb/varobj-iter.h +++ b/gdb/varobj-iter.h @@ -67,6 +67,6 @@ struct varobj_iter_ops if ((ITER) != NULL) \ { \ (ITER)->ops->dtor (ITER); \ - delete (ITER); \ + xfree (ITER); \ } \ } while (0)