acme: fix plumb message leaks (thanks igor)
This commit is contained in:
parent
e2e4a46f26
commit
6c70026fa4
1 changed files with 2 additions and 4 deletions
|
@ -352,7 +352,6 @@ del(Text *et, Text*, Text *argt, int flag1, int, Rune *arg, int narg)
|
|||
pm->ndata = strlen(pm->data);
|
||||
if(pm->ndata < messagesize-1024)
|
||||
plumbsend(plumbsendfd, pm);
|
||||
else
|
||||
plumbfree(pm);
|
||||
}
|
||||
colclose(et->col, et->w, TRUE);
|
||||
|
@ -687,7 +686,6 @@ putfile(File *f, int q0, int q1, Rune *namer, int nname)
|
|||
pm->ndata = strlen(pm->data);
|
||||
if(pm->ndata < messagesize-1024)
|
||||
plumbsend(plumbsendfd, pm);
|
||||
else
|
||||
plumbfree(pm);
|
||||
}
|
||||
fbuffree(s);
|
||||
|
|
Loading…
Reference in a new issue