fix mem leak (bug 11793)
authorBrian <brian.paul@tungstengraphics.com>
Wed, 1 Aug 2007 14:41:51 +0000 (08:41 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 1 Aug 2007 14:43:58 +0000 (08:43 -0600)
src/mesa/drivers/dri/common/dri_drmpool.c

index 878a148b397c964e3f2383cade98bca485621f42..592ac105428d4462c60dafd679bdffde54d81bb6 100644 (file)
@@ -51,6 +51,7 @@ pool_create(struct _DriBufferPool *pool,
       return NULL;
 
    if ((alignment > pageSize) && (alignment % pageSize)) {
+      free(buf);
       return NULL;
    }