summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/common
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-01 08:41:51 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-01 08:43:58 -0600
commitf761c99d25aa71c4c761c1f876782a81c795fd5c (patch)
tree0579777fb9e265261f3fb7f4aeaf9d1dec57a930 /src/mesa/drivers/dri/common
parente9fbf69aeab590d5f292a7ca6bdeb5d2791f9918 (diff)
fix mem leak (bug 11793)
Diffstat (limited to 'src/mesa/drivers/dri/common')
-rw-r--r--src/mesa/drivers/dri/common/dri_drmpool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/dri_drmpool.c b/src/mesa/drivers/dri/common/dri_drmpool.c
index 878a148b39..592ac10542 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;
}