[Mesa-dev] [PATCH] mesa: fix memory leak in arb_fragment_program

Timothy Arceri tarceri at itsqueeze.com
Wed Apr 12 07:51:22 UTC 2017


On 12/04/17 15:55, Bartosz Tomczyk wrote:
> Could you push it for me?

Done. :)

>
> On Mon, Apr 10, 2017 at 4:06 AM, Timothy Arceri <tarceri at itsqueeze.com
> <mailto:tarceri at itsqueeze.com>> wrote:
>
>     Thanks.
>
>     Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com
>     <mailto:tarceri at itsqueeze.com>>
>
>
>     On 10/04/17 02:37, Bartosz Tomczyk wrote:
>
>         ---
>          src/mesa/program/arbprogparse.c | 1 +
>          1 file changed, 1 insertion(+)
>
>         diff --git a/src/mesa/program/arbprogparse.c
>         b/src/mesa/program/arbprogparse.c
>         index 07bdf1603e..83a501eea6 100644
>         --- a/src/mesa/program/arbprogparse.c
>         +++ b/src/mesa/program/arbprogparse.c
>         @@ -78,6 +78,7 @@ _mesa_parse_arb_fragment_program(struct
>         gl_context* ctx, GLenum target,
>             memset(&prog, 0, sizeof(prog));
>             memset(&state, 0, sizeof(state));
>             state.prog = &prog;
>         +   state.mem_ctx = program;
>
>             if (!_mesa_parse_arb_program(ctx, target, (const GLubyte*)
>         str, len,
>                                         &state)) {
>
>     _______________________________________________
>     mesa-dev mailing list
>     mesa-dev at lists.freedesktop.org <mailto:mesa-dev at lists.freedesktop.org>
>     https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>     <https://lists.freedesktop.org/mailman/listinfo/mesa-dev>
>
>


More information about the mesa-dev mailing list