acme: fix some memory leaks

This commit is contained in:
Xiao-Yong Jin 2018-03-20 22:15:12 -05:00 committed by David du Colombier
parent 96dc233091
commit 7ca1c90109
3 changed files with 8 additions and 2 deletions

View file

@ -194,6 +194,7 @@ execute(Text *t, uint aq0, uint aq1, int external, Text *argt)
aa = getbytearg(argt, TRUE, TRUE, &a);
if(a){
if(strlen(a) > EVENTSIZE){ /* too big; too bad */
free(r);
free(aa);
free(a);
warning(nil, "argument string too long\n");