acme: fix some memory leaks
This commit is contained in:
parent
96dc233091
commit
7ca1c90109
3 changed files with 8 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue