From d6121c0d1fcf97204558cc43b7896204ea260052 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 26 Oct 2006 05:19:54 +0000 Subject: 10l: multiple-free! --- xlib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.1