OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / gcc / opts-common.c
index 00edbe6..354bce0 100644 (file)
@@ -304,6 +304,8 @@ generate_canonical_option (size_t opt_index, const char *arg, int value,
          decoded->canonical_option[0] = concat (opt_text, arg, NULL);
          decoded->canonical_option[1] = NULL;
          decoded->canonical_option_num_elements = 1;
+         if (opt_text != option->opt_text)
+           free (CONST_CAST (char *, opt_text));
        }
     }
   else