sam: freetmpstr instead of free

This commit is contained in:
Xiao-Yong Jin 2018-03-21 22:24:12 -05:00 committed by David du Colombier
parent dc2a17b95c
commit edfe3c016f

View file

@ -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));
}