summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2006-10-26 05:19:54 +0000
committerRich Felker <dalias@aerifal.cx>2006-10-26 05:19:54 +0000
commitd6121c0d1fcf97204558cc43b7896204ea260052 (patch)
tree01916f9613b2462b738c5f7a9f2736bce4b78a33
parentfe8f2b98e6a785112be30c8b817ea501a35efc19 (diff)
downloaduuterm-d6121c0d1fcf97204558cc43b7896204ea260052.tar.gz
10l: multiple-free!
-rw-r--r--xlib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlib.c b/xlib.c
index 3dd9657..e783458 100644
--- a/xlib.c
+++ b/xlib.c
@@ -230,8 +230,10 @@ void uudisp_next_event(struct uudisp *d, void *fds)
Atom type;
int fmt;
- if (!d->inlen && p->pastebuf)
+ if (!d->inlen && p->pastebuf) {
XFree(p->pastebuf);
+ p->pastebuf = NULL;
+ }
if (!FD_ISSET(p->fd, (fd_set *)fds)) return;