]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - libiberty/partition.c
Fix advance/until and multiple locations (PR gdb/26524)
[thirdparty/binutils-gdb.git] / libiberty / partition.c
index 24a99122d5599fdc645eb80671212bd28e545bf5..2e17515f2d61a483fedf475dc487658024458a11 100644 (file)
@@ -1,5 +1,5 @@
 /* List implementation of a partition of consecutive integers.
-   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 2000-2020 Free Software Foundation, Inc.
    Contributed by CodeSourcery, LLC.
 
    This file is part of GNU CC.
@@ -16,8 +16,8 @@
 
    You should have received a copy of the GNU General Public License
    along with GNU CC; see the file COPYING.  If not, write to
-   the Free Software Foundation, 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.  */
+   the Free Software Foundation, 51 Franklin Street - Fifth Floor,
+   Boston, MA 02110-1301, USA.  */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -177,6 +177,7 @@ partition_print (partition part, FILE *fp)
       }
   fputc (']', fp);
 
+  free (class_elements);
   free (done);
 }