diff options
-rw-r--r-- | src/i830_memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c index ecfdf2a2..505564f5 100644 --- a/src/i830_memory.c +++ b/src/i830_memory.c @@ -757,7 +757,7 @@ i830_allocate_memory_bo(ScrnInfoPtr pScrn, const char *name, return NULL; mem->name = xstrdup(name); - if (name == NULL) { + if (mem->name == NULL) { xfree(mem); return NULL; } |