summaryrefslogtreecommitdiffstats
path: root/mdoc_macro.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r--mdoc_macro.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index 4e4a799d..db22ccf4 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -871,9 +871,11 @@ in_line(MACRO_PROT_ARGS)
tok, arg))
return(0);
mdoc->next = MDOC_NEXT_SIBLING;
- } else if ( ! nc && 0 == cnt)
+ } else if ( ! nc && 0 == cnt) {
+ mdoc_argv_free(arg);
if ( ! pwarn(mdoc, line, ppos, WIGNE))
return(0);
+ }
c = mdoc_macro(mdoc, c, line, la, pos, buf);
if (0 == c)
return(0);
@@ -924,9 +926,11 @@ in_line(MACRO_PROT_ARGS)
if (0 == c)
return(0);
mdoc->next = MDOC_NEXT_SIBLING;
- } else if ( ! nc && 0 == cnt)
+ } else if ( ! nc && 0 == cnt) {
+ mdoc_argv_free(arg);
if ( ! pwarn(mdoc, line, ppos, WIGNE))
return(0);
+ }
if (ppos > 1)
return(1);