fix a small memory leak in _mesa_add_state_reference()
This commit is contained in:
@@ -467,6 +467,9 @@ _mesa_add_state_reference(struct program_parameter_list *paramList,
|
|||||||
make_state_flags(stateTokens);
|
make_state_flags(stateTokens);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* free name string here since we duplicated it in add_parameter() */
|
||||||
|
_mesa_free((void *) name);
|
||||||
|
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user