diff options
author | Brian Paul <[email protected]> | 2008-09-04 15:05:03 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-09-04 15:05:03 -0600 |
commit | 9a64440154319738445e203339156e54232908ee (patch) | |
tree | 0c8c935931620b82d8d0d7ae8e4af15656293398 /src/mesa/shader | |
parent | dc248fc2881f4443bdc20a3b53b2ad24fee430ec (diff) |
mesa: fix minor mem leak
Diffstat (limited to 'src/mesa/shader')
-rw-r--r-- | src/mesa/shader/prog_print.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c index 10c5afec189..ec260f18a9f 100644 --- a/src/mesa/shader/prog_print.c +++ b/src/mesa/shader/prog_print.c @@ -250,7 +250,9 @@ reg_string(enum register_file f, GLint index, gl_prog_print_mode mode, { struct gl_program_parameter *param = prog->Parameters->Parameters + index; - sprintf(str, _mesa_program_state_string(param->StateIndexes)); + char *state = _mesa_program_state_string(param->StateIndexes); + sprintf(str, state); + _mesa_free(state); } break; case PROGRAM_ADDRESS: |