On 18 April 2016 at 10:14, Jose Fonseca <jfons...@vmware.com> wrote: > @@ -306,6 +309,15 @@ init_gallivm_state(struct gallivm_state *gallivm, const > char *name, > if (!gallivm->context) > goto fail; > > + gallivm->module_name = NULL; > + if (name) { > + size_t size = strlen(name) + 1; > + gallivm->module_name = MALLOC(size); > + if (gallivm->module_name) { > + memcpy(gallivm->module_name, name, size); Since we already use stdup in gallium/aux one could do the same here. Note: you'll need the lowercase free() in gallivm_free_ir().
-Emil _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev