summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_label.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/shader/slang/slang_label.c')
-rw-r--r--src/mesa/shader/slang/slang_label.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_label.c b/src/mesa/shader/slang/slang_label.c
index 1240621365..7e00b5787f 100644
--- a/src/mesa/shader/slang/slang_label.c
+++ b/src/mesa/shader/slang/slang_label.c
@@ -34,7 +34,7 @@ _slang_label_new_unique(const char *name)
if (l) {
l->Name = (char *) _slang_alloc(strlen(name) + 10);
if (!l->Name) {
- _mesa_free(l);
+ free(l);
return NULL;
}
_mesa_sprintf(l->Name, "%s_%d", name, id);