Fix typo in last gdb/ChangeLog entry.
[deliverable/binutils-gdb.git] / gdb / charset.c
index 4a209a553cb3a1fcbf2fb117848f6a83175fbeb1..89baf461f4a0b684efae74f6533e2717362af90c 100644 (file)
@@ -909,11 +909,8 @@ find_charset_names (void)
   if (fail)
     {
       /* Some error occurred, so drop the vector.  */
-      int ix;
-      char *elt;
-      for (ix = 0; VEC_iterate (char_ptr, charsets, ix, elt); ++ix)
-       xfree (elt);
-      VEC_truncate (char_ptr, charsets, 0);
+      free_char_ptr_vec (charsets);
+      charsets = NULL;
     }
   else
     VEC_safe_push (char_ptr, charsets, NULL);
This page took 0.024275 seconds and 4 git commands to generate.