summaryrefslogtreecommitdiff
path: root/soltools/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'soltools/cpp')
-rw-r--r--soltools/cpp/_macro.c1
-rw-r--r--soltools/cpp/_unix.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/soltools/cpp/_macro.c b/soltools/cpp/_macro.c
index bd91141bc0b9..6d48ef6cf05d 100644
--- a/soltools/cpp/_macro.c
+++ b/soltools/cpp/_macro.c
@@ -133,6 +133,7 @@ void
tap = normtokenrow(args);
dofree(args->bp);
+ dofree(args);
args = tap;
}
np->ap = args;
diff --git a/soltools/cpp/_unix.c b/soltools/cpp/_unix.c
index d1cd20880e1d..fa8abffec510 100644
--- a/soltools/cpp/_unix.c
+++ b/soltools/cpp/_unix.c
@@ -89,6 +89,7 @@ void
maketokenrow(3, &tr);
gettokens(&tr, 1);
doadefine(&tr, c);
+ dofree(tr.bp);
unsetsource();
break;