pipebuffer: Fix improper memory free.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Wed, 11 Jun 2008 01:33:41 +0000 (10:33 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 12 Jun 2008 01:56:16 +0000 (10:56 +0900)
src/gallium/auxiliary/pipebuffer/pb_buffer_malloc.c

index 6c3502eea7f187930ef223761aef87faed6a39f2..e90d2e5623110c6a13989985e3aaf6a2653aa803 100644 (file)
@@ -120,7 +120,7 @@ pb_malloc_buffer_create(size_t size,
 
    buf->data = align_malloc(size, desc->alignment < sizeof(void*) ? sizeof(void*) : desc->alignment);
    if(!buf->data) {
-      align_free(buf);
+      FREE(buf);
       return NULL;
    }