dwarf2read: Replace copy_string usages with savestring
[deliverable/binutils-gdb.git] / gdb / varobj-iter.h
index 1e7889be0294d0f35f5b311a81218d847b8d1a3c..7eed4f18454e6de10f43f980de31d082247bc2f6 100644 (file)
@@ -1,5 +1,5 @@
 /* Iterator of varobj.
-   Copyright (C) 2013-2016 Free Software Foundation, Inc.
+   Copyright (C) 2013-2017 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -67,6 +67,6 @@ struct varobj_iter_ops
       if ((ITER) != NULL)                     \
        {                                      \
          (ITER)->ops->dtor (ITER);            \
-         delete (ITER);                       \
+         xfree (ITER);                \
        }                                      \
     } while (0)
This page took 0.024017 seconds and 4 git commands to generate.