st/mesa: Fix a potential memory leak in get_mesa_program.
authorVinson Lee <vlee@freedesktop.org>
Sat, 4 Aug 2012 21:04:03 +0000 (14:04 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 7 Aug 2012 05:08:56 +0000 (22:08 -0700)
commit7d65356d8a4d268dce4c933d7704d709e1cdacfa
treefe62dfe1851ad37b79f4058366840c1ac50c79f2
parentc3894bc2d5d5eabdc913d88d1fedc552fef074a5
st/mesa: Fix a potential memory leak in get_mesa_program.

Fixes resource leak defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp