Fixes Coverity resource leak defect. --- src/gallium/auxiliary/postprocess/pp_program.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/gallium/auxiliary/postprocess/pp_program.c b/src/gallium/auxiliary/postprocess/pp_program.c index c287af5..1a8a584 100644 --- a/src/gallium/auxiliary/postprocess/pp_program.c +++ b/src/gallium/auxiliary/postprocess/pp_program.c @@ -41,12 +41,13 @@ struct program * pp_init_prog(struct pp_queue_t *ppq, struct pipe_screen *pscreen) { - struct program *p = CALLOC(1, sizeof(struct program)); + struct program *p; pp_debug("Initializing program\n"); if (!pscreen) return NULL; + p = CALLOC(1, sizeof(struct program)); if (!p) return NULL; -- 1.7.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev