diff options
Diffstat (limited to 'mesalib/src/mesa/shader/slang/slang_label.c')
-rw-r--r-- | mesalib/src/mesa/shader/slang/slang_label.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesalib/src/mesa/shader/slang/slang_label.c b/mesalib/src/mesa/shader/slang/slang_label.c index 1ca1ef0c7..225612a93 100644 --- a/mesalib/src/mesa/shader/slang/slang_label.c +++ b/mesalib/src/mesa/shader/slang/slang_label.c @@ -32,12 +32,12 @@ _slang_label_new_unique(const char *name) static int id = 1; slang_label *l = (slang_label *) _slang_alloc(sizeof(slang_label)); if (l) { - l->Name = (char *) _slang_alloc(_mesa_strlen(name) + 10); + 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); + sprintf(l->Name, "%s_%d", name, id); id++; l->Location = -1; } |