aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao-Yong Jin <xjin@anl.gov>2018-03-21 22:24:12 -0500
committerDavid du Colombier <0intro@gmail.com>2018-03-27 15:03:12 +0200
commitedfe3c016fe6ef10c55f7a17aab668214ec21efc (patch)
tree35e374c5f154992935f349799a1040a17ec1a609
parentdc2a17b95cace1f220292cb6df97ee423d6be229 (diff)
downloadplan9port-edfe3c016fe6ef10c55f7a17aab668214ec21efc.tar.gz
plan9port-edfe3c016fe6ef10c55f7a17aab668214ec21efc.tar.bz2
plan9port-edfe3c016fe6ef10c55f7a17aab668214ec21efc.zip
sam: freetmpstr instead of free
-rw-r--r--src/cmd/sam/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/sam/error.c b/src/cmd/sam/error.c
index eb4e48f4..70554e19 100644
--- a/src/cmd/sam/error.c
+++ b/src/cmd/sam/error.c
@@ -138,7 +138,7 @@ termwrite(char *s)
else
Strinsert(&cmdstr, p, cmdstr.n);
cmdptadv += p->n;
- free(p);
+ freetmpstr(p);
}else
Write(2, s, strlen(s));
}