From: Brian Date: Wed, 1 Aug 2007 14:41:51 +0000 (-0600) Subject: fix mem leak (bug 11793) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f761c99d25aa71c4c761c1f876782a81c795fd5c;p=mesa.git fix mem leak (bug 11793) --- diff --git a/src/mesa/drivers/dri/common/dri_drmpool.c b/src/mesa/drivers/dri/common/dri_drmpool.c index 878a148b397..592ac105428 100644 --- a/src/mesa/drivers/dri/common/dri_drmpool.c +++ b/src/mesa/drivers/dri/common/dri_drmpool.c @@ -51,6 +51,7 @@ pool_create(struct _DriBufferPool *pool, return NULL; if ((alignment > pageSize) && (alignment % pageSize)) { + free(buf); return NULL; }