diff options
Diffstat (limited to 'mdoc_argv.c')
-rw-r--r-- | mdoc_argv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mdoc_argv.c b/mdoc_argv.c index e24ac739..5c3dc862 100644 --- a/mdoc_argv.c +++ b/mdoc_argv.c @@ -313,9 +313,11 @@ mdoc_argv_free(struct mdoc_arg *p) void mdoc_argn_free(struct mdoc_arg *p, int iarg) { - struct mdoc_argv *arg = &p->argv[iarg]; /* FIXME: decl/assign */ + struct mdoc_argv *arg; int j; + arg = &p->argv[iarg]; + if (arg->sz && arg->value) { for (j = (int)arg->sz - 1; j >= 0; j--) free(arg->value[j]); |