plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit edfe3c016fe6ef10c55f7a17aab668214ec21efc
parent dc2a17b95cace1f220292cb6df97ee423d6be229
Author: Xiao-Yong Jin <xjin@anl.gov>
Date:   Wed, 21 Mar 2018 22:24:12 -0500

sam: freetmpstr instead of free

Diffstat:
Msrc/cmd/sam/error.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)); }