diff options
Diffstat (limited to 'gdb/common/common-utils.c')
-rw-r--r-- | gdb/common/common-utils.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/common/common-utils.c b/gdb/common/common-utils.c index afc0af9..e94fdc4 100644 --- a/gdb/common/common-utils.c +++ b/gdb/common/common-utils.c @@ -317,3 +317,14 @@ skip_to_space_const (const char *chp) chp++; return chp; } + +/* See common/common-utils.h. */ + +void +free_vector_argv (std::vector<char *> &v) +{ + for (char *el : v) + xfree (el); + + v.clear (); +} |